javax.naming
Interface Referenceable


public interface Referenceable

This interface is implemented by an object that can provide a Reference to itself.

A Reference represents a way of recording address information about objects which themselves are not directly bound to the naming system. Such objects can implement the Referenceable interface as a way for programs that use that object to determine what its Reference is. For example, when binding a object, if an object implements the Referenceable interface, getReference() can be invoked on the object to get its Reference to use for binding.

Since:
1.3
See Also:
Context.bind(javax.naming.Name, java.lang.Object) sample code for javax.naming.Context.bind(javax.naming.Name, java.lang.Object) definition code for javax.naming.Context.bind(javax.naming.Name, java.lang.Object) , NamingManager.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable) sample code for javax.naming.spi.NamingManager.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable) definition code for javax.naming.spi.NamingManager.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable) , Reference sample code for javax.naming.Reference definition code for javax.naming.Reference

Method Summary
 Reference sample code for javax.naming.Reference definition code for javax.naming.Reference getReference sample code for javax.naming.Referenceable.getReference() definition code for javax.naming.Referenceable.getReference() ()
          Retrieves the Reference of this object.
 

Method Detail

getReference sample code for javax.naming.Referenceable.getReference() definition code for javax.naming.Referenceable.getReference()

Reference sample code for javax.naming.Reference definition code for javax.naming.Reference  getReference()
                       throws NamingException sample code for javax.naming.NamingException definition code for javax.naming.NamingException 
Retrieves the Reference of this object.

Returns:
The non-null Reference of this object.
Throws:
NamingException sample code for javax.naming.NamingException definition code for javax.naming.NamingException - If a naming exception was encountered while retrieving the reference.