API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.naming. Reference View Source
Author(s)
Rosanna Lee
Scott Seligman
Since
1.3
Version
1.10 05/11/17
Serial
Hierarchy
 Object
      Reference
Implements
 Cloneable
 Serializable
Subclasses
Description
public class Reference
  This class represents a reference to an object that is found outside of the naming/directory system.
Constructors
public Reference (String className)
  Constructs a new reference for an object with class name 'className'.
public Reference (String className, RefAddr addr)
  Constructs a new reference for an object with class name 'className' and an address.
public Reference (String className, RefAddr addr, String factory, String factoryLocation)
  Constructs a new reference for an object with class name 'className', the class name and location of the object's factory, and the address for the object.
public Reference (String className, String factory, String factoryLocation)
  Constructs a new reference for an object with class name 'className', and the class name and location of the object's factory.
Methods
Hide/Show inherited methods
public void add (int posn, RefAddr addr)
  Adds an address to the list of addresses at index posn.
public void add (RefAddr addr)
  Adds an address to the end of the list of addresses.
public void clear ()
Deletes all addresses from this reference.
public Object clone ()
  Makes a copy of this reference using its class name list of addresses, class factory name and class factory location.
public boolean equals (Object obj)
  Determines whether obj is a reference with the same addresses (in same order) as this reference.
public RefAddr get (int posn)
  Retrieves the address at index posn.
public RefAddr get (String addrType)
  Retrieves the first address that has the address type 'addrType'.
public Enumeration<RefAddr> getAll ()
  Retrieves an enumeration of the addresses in this reference.
public String getClassName ()
  Retrieves the class name of the object to which this reference refers.
public String getFactoryClassLocation ()
  Retrieves the location of the factory of the object to which this reference refers.
public String getFactoryClassName ()
  Retrieves the class name of the factory of the object to which this reference refers.
public int hashCode ()
  Computes the hash code of this reference.
public Object remove (int posn)
  Deletes the address at index posn from the list of addresses.
public int size ()
  Retrieves the number of addresses in this reference.
public String toString ()
  Generates the string representation of this reference.
Fields
Hide/Show inherited fields
protected Vector<RefAddr> addrs
  Contains the addresses contained in this Reference.
protected String classFactory
  Contains the name of the factory class for creating an instance of the object to which this Reference refers.
protected String classFactoryLocation
  Contains the location of the factory class.
protected String className
  Contains the fully-qualified name of the class of the object to which this Reference refers.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar