Name
Reference
Synopsis
This class represents an object external to a naming system that is
referred to by an object in the naming system. A Reference
contains an
address for retrieving the object from its naming system. The address
is a communications end point that enables JNDI to contact the
object. The address can be any concrete subclass of RefAddr
, such as a
StringRefAddr
for representing a URL or DNS name. A Reference
also
contains the class name of the referenced object.
public class Reference implements Cloneable, Serializable { // Public Constructors public Reference( String className); public Reference( String className, RefAddr addr); public Reference(String className, String factory, String factoryLocation); public Reference(String className, RefAddr addr, String factory, String factoryLocation); // Public Instance Methods public void add( RefAddr addr); public void add( int posn, RefAddr addr); public void clear(); public RefAddr get( int posn); public RefAddr get( String addrType); public java.util.Enumeration getAll(); public String getClassName(); public String getFactoryClassLocation(); public String getFactoryClassName(); public Object remove( int posn); public int size(); // Public Methods Overriding Object public Object clone(); public boolean equals( Object obj); public int hashCode(); public String toString(); // Protected Instance Fields protected java.util.Vector ...
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.