1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.resource;
  6. import javax.naming.Reference;
  7. /** The Referenceable interface extends the javax.naming.Referenceable
  8. * interface. It enables support for JNDI Reference mechanism for
  9. * the registration of the connection factory in the JNDI name space.
  10. * Note that the implementation and structure of Reference is specific
  11. * to an application server.
  12. *
  13. * <p>The implementation class for a connection factory interface is
  14. * required to implement both java.io.Serializable and
  15. * javax.resource.Referenceable interfaces to support JNDI registration.
  16. *
  17. * @version 0.9
  18. * @author Rahul Sharma
  19. *
  20. **/
  21. public interface Referenceable extends javax.naming.Referenceable {
  22. /** Sets the Reference instance. This method is called by the
  23. * deployment code to set the Reference that can be later
  24. * returned by the getReference method (as defined in the
  25. * javax.naming.Referenceable interface).
  26. *
  27. * @param reference A Reference instance
  28. * @see javax.naming.Referenceable#getReference
  29. *
  30. **/
  31. public
  32. void setReference(Reference reference);
  33. }