wt.inf.container
Class WTContainerRef

java.lang.Object
  extended by wt.fc.ObjectReference
      extended by wt.fc.CachedObjectReference
          extended by wt.inf.container.WTContainerRef
All Implemented Interfaces:
Externalizable, Serializable, NetFactor, ObjectMappable, WTReference, Evolvable

public class WTContainerRef
extends wt.fc.CachedObjectReference
implements Externalizable

Use the newWTContainerRef static factory method(s), not the WTContainerRef constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface wt.fc.WTReference
OBJECT
 
Method Summary
 WTContainer getReferencedContainerReadOnly()
          Returns a read-only reference to the cached instance of the container.
protected  void initialize(WTContainer container)
          Supports initialization, following construction of an instance.
protected  void initialize(WTContainerRef ref)
          Supports initialization, following construction of an instance.
static WTContainerRef newWTContainerRef(WTContainer container)
          

Supported API: true
static WTContainerRef newWTContainerRef(WTContainerRef ref)
          

Supported API: true
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

newWTContainerRef

public static WTContainerRef newWTContainerRef(WTContainer container)
                                        throws WTException


Supported API: true

Parameters:
container -
Returns:
WTContainerRef
Throws:
WTException

initialize

protected void initialize(WTContainer container)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
container -
Throws:
WTException

newWTContainerRef

public static WTContainerRef newWTContainerRef(WTContainerRef ref)
                                        throws WTException


Supported API: true

Parameters:
ref -
Returns:
WTContainerRef
Throws:
WTException

initialize

protected void initialize(WTContainerRef ref)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
ref -
Throws:
WTException

getReferencedContainerReadOnly

public WTContainer getReferencedContainerReadOnly()
Returns a read-only reference to the cached instance of the container.

Supported API: true

Returns:
WTContainer
See Also:
wt#fc#CachedObjectReference#getReadOnlyObject()