org.ow2.orchestra.pvm.internal.wire.descriptor
Class CollectionDescriptor

java.lang.Object
  extended by org.ow2.orchestra.pvm.internal.util.DefaultObservable
      extended by org.ow2.orchestra.pvm.internal.wire.descriptor.AbstractDescriptor
          extended by org.ow2.orchestra.pvm.internal.wire.descriptor.CollectionDescriptor
All Implemented Interfaces:
Serializable, Observable, Descriptor
Direct Known Subclasses:
ListDescriptor, MapDescriptor, SetDescriptor

public class CollectionDescriptor
extends AbstractDescriptor
implements Descriptor

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  String className
           
protected  boolean isSynchronized
           
protected  List<Descriptor> valueDescriptors
           
 
Fields inherited from class org.ow2.orchestra.pvm.internal.wire.descriptor.AbstractDescriptor
dbid, dbversion, init, INIT_EAGER, INIT_IMMEDIATE, INIT_LAZY, INIT_REQUIRED, name, version
 
Fields inherited from class org.ow2.orchestra.pvm.internal.util.DefaultObservable
listeners
 
Fields inherited from interface org.ow2.orchestra.pvm.internal.wire.Descriptor
EVENT_CONSTRUCTED, EVENT_CONSTRUCTING, EVENT_INITIALIZING, EVENT_REMOVE, EVENT_SET
 
Constructor Summary
protected CollectionDescriptor()
           
  CollectionDescriptor(String defaultImplClassName)
           
 
Method Summary
 Object construct(WireContext wireContext)
          constructs the object.
 String getClassName()
           
 List<Descriptor> getValueDescriptors()
           
 void initialize(Object object, WireContext wireContext)
          called by the WireContext to initialize the specified object.
 boolean isSynchronized()
           
 void setClassName(String className)
           
 void setSynchronized(boolean isSynchronized)
           
 void setValueDescriptors(List<Descriptor> valueDescriptors)
           
 
Methods inherited from class org.ow2.orchestra.pvm.internal.wire.descriptor.AbstractDescriptor
getDbid, getName, getType, isDelayable, isEagerInit, setInit, setName
 
Methods inherited from class org.ow2.orchestra.pvm.internal.util.DefaultObservable
addListener, addListener, addListener, fire, fire, getListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.orchestra.pvm.internal.wire.Descriptor
getName, getType, isDelayable, isEagerInit
 
Methods inherited from interface org.ow2.orchestra.pvm.internal.util.Observable
addListener, addListener, addListener, fire, fire, removeListener
 

Field Detail

className

protected String className

valueDescriptors

protected List<Descriptor> valueDescriptors

isSynchronized

protected boolean isSynchronized
Constructor Detail

CollectionDescriptor

protected CollectionDescriptor()

CollectionDescriptor

public CollectionDescriptor(String defaultImplClassName)
Method Detail

construct

public Object construct(WireContext wireContext)
Description copied from interface: Descriptor
constructs the object.

Specified by:
construct in interface Descriptor
Parameters:
wireContext - WireContext in which the object is created. This is also the WireContext where the object will search for other object that may be needed during the initialization phase.
Returns:
the constructed object.

initialize

public void initialize(Object object,
                       WireContext wireContext)
Description copied from interface: Descriptor
called by the WireContext to initialize the specified object. For more information about initialization, see WireContext section lifecycle.

Specified by:
initialize in interface Descriptor
Overrides:
initialize in class AbstractDescriptor
Parameters:
object - object to initialize.
wireContext - the context in which the object will be initialized.

getClassName

public String getClassName()

setClassName

public void setClassName(String className)

getValueDescriptors

public List<Descriptor> getValueDescriptors()

setValueDescriptors

public void setValueDescriptors(List<Descriptor> valueDescriptors)

isSynchronized

public boolean isSynchronized()

setSynchronized

public void setSynchronized(boolean isSynchronized)


Copyright © 2011 OW2 Consortium. All Rights Reserved.