tyrex.naming

Class ReferenceRefAddr

final class ReferenceRefAddr extends RefAddr

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

Author: Riad Mohammed

Constructor Summary
ReferenceRefAddr(String addressType, Referenceable referenceable)
Create the ReferenceRefAddr with the specified arguments.
ReferenceRefAddr(String addressType, Referenceable referenceable, Hashtable environment)
Create the ReferenceRefAddr with the specified arguments.
ReferenceRefAddr(String addressType, Reference reference)
Create the ReferenceRefAddr with the specified arguments.
ReferenceRefAddr(String addressType, Reference reference, Hashtable environment)
Create the ReferenceRefAddr with the specified arguments.
Method Summary
booleanequals(Object object)
Return true if the specified object is of type ReferenceRefAddr and has the same underlying reference.
ObjectgetContent()
Returns the object referred to by the underlying reference.
inthashCode()
Return the hashcode of the underlying reference as the hashcode of the ReferenceRefAddr.

Constructor Detail

ReferenceRefAddr

ReferenceRefAddr(String addressType, Referenceable referenceable)
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

UNKNOWN: NamingException if there is a problem get the reference from the referenceable object.

ReferenceRefAddr

ReferenceRefAddr(String addressType, Referenceable referenceable, Hashtable environment)
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.

UNKNOWN: NamingException if there is a problem get the reference from the referenceable object.

ReferenceRefAddr

ReferenceRefAddr(String addressType, 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(String addressType, Reference reference, 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(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.

getContent

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

Returns: the object referred to by the 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.

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.