April 2002
Intermediate to advanced
992 pages
40h 18m
English
Reference
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 ...Read now
Unlock full access