1. /*
  2. * @(#)Referenceable.java 1.4 00/02/02
  3. *
  4. * Copyright 1999, 2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.naming;
  11. /**
  12. * This interface is implemented by an object that can provide a
  13. * Reference to itself.
  14. *<p>
  15. * A Reference represents a way of recording address information about
  16. * objects which themselves are not directly bound to the naming system.
  17. * Such objects can implement the Referenceable interface as a way
  18. * for programs that use that object to determine what its Reference is.
  19. * For example, when binding a object, if an object implements the
  20. * Referenceable interface, getReference() can be invoked on the object to
  21. * get its Reference to use for binding.
  22. *
  23. * @author Rosanna Lee
  24. * @author Scott Seligman
  25. * @author R. Vasudevan
  26. * @version 1.4 00/02/02
  27. *
  28. * @see Context#bind
  29. * @see javax.naming.spi.NamingManager#getObjectInstance
  30. * @see Reference
  31. * @since 1.3
  32. */
  33. public interface Referenceable {
  34. /**
  35. * Retrieves the Reference of this object.
  36. *
  37. * @return The non-null Reference of this object.
  38. * @exception NamingException If a naming exception was encountered
  39. * while retrieving the reference.
  40. */
  41. Reference getReference() throws NamingException;
  42. }