tyrex.naming
Class ReferenceRefAddr

java.lang.Object
  extended byjavax.naming.RefAddr
      extended bytyrex.naming.ReferenceRefAddr
All Implemented Interfaces:
java.io.Serializable

final class ReferenceRefAddr
extends javax.naming.RefAddr

This class allows referenceable objects to be stored inside of other references.

Author:
Riad Mohammed

Field Summary
 
Fields inherited from class javax.naming.RefAddr
addrType
 
Constructor Summary
(package private) ReferenceRefAddr(java.lang.String addressType, javax.naming.Reference reference)
          Create the ReferenceRefAddr with the specified arguments.
(package private) ReferenceRefAddr(java.lang.String addressType, javax.naming.Referenceable referenceable)
          Create the ReferenceRefAddr with the specified arguments.
(package private) ReferenceRefAddr(java.lang.String addressType, javax.naming.Referenceable referenceable, java.util.Hashtable environment)
          Create the ReferenceRefAddr with the specified arguments.
(package private) ReferenceRefAddr(java.lang.String addressType, javax.naming.Reference reference, java.util.Hashtable environment)
          Create the ReferenceRefAddr with the specified arguments.
 
Method Summary
 boolean equals(java.lang.Object object)
          Return true if the specified object is of type ReferenceRefAddr and has the same underlying reference.
 java.lang.Object getContent()
          Returns the object referred to by the underlying reference.
 int hashCode()
          Return the hashcode of the underlying reference as the hashcode of the ReferenceRefAddr.
 
Methods inherited from class javax.naming.RefAddr
getType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReferenceRefAddr

ReferenceRefAddr(java.lang.String addressType,
                 javax.naming.Referenceable referenceable)
           throws javax.naming.NamingException
Create the ReferenceRefAddr with the specified arguments.

The reference from the specified referenceable object is retrieved and stored.

A null environment hashtable is used in the recreation of the referenceable object from the underlying reference.

Parameters:
addressType - the address type of the ref addr
referenceable - the referenceable object

ReferenceRefAddr

ReferenceRefAddr(java.lang.String addressType,
                 javax.naming.Referenceable referenceable,
                 java.util.Hashtable environment)
           throws javax.naming.NamingException
Create the ReferenceRefAddr with the specified arguments.

The reference from the specified referenceable object is retrieved and stored.

Parameters:
addressType - the address type of the ref addr
referenceable - the referenceable object
environment - used in the recreation of the referenceable object from the underlying reference. Can be null.

ReferenceRefAddr

ReferenceRefAddr(java.lang.String addressType,
                 javax.naming.Reference reference)
Create the ReferenceRefAddr with the specified arguments.

A null environment hashtable is used in the recreation of the referenceable object from the underlying reference.

Parameters:
addressType - the address type of the ref addr
reference - the reference

ReferenceRefAddr

ReferenceRefAddr(java.lang.String addressType,
                 javax.naming.Reference reference,
                 java.util.Hashtable environment)
Create the ReferenceRefAddr with the specified arguments.

Parameters:
addressType - the address type of the ref addr
reference - the reference
environment - used in the recreation of the referenceable object from the underlying reference. Can be null.
Method Detail

equals

public boolean equals(java.lang.Object object)
Return true if the specified object is of type ReferenceRefAddr and has the same underlying reference.

Parameters:
object - the object
Returns:
true if the specified object is of type ReferenceRefAddr and has the same underlying reference.

hashCode

public int hashCode()
Return the hashcode of the underlying reference as the hashcode of the ReferenceRefAddr.

Returns:
the hashcode of the underlying reference as the hashcode of the ReferenceRefAddr.

getContent

public java.lang.Object getContent()
Returns the object referred to by the underlying reference.

Returns:
the object referred to by the underlying reference.


Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.