|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.orchestra.pvm.internal.util.DefaultObservable
org.ow2.orchestra.pvm.internal.wire.descriptor.AbstractDescriptor
public abstract class AbstractDescriptor
base class for Descriptors.
| Field Summary | |
|---|---|
protected long |
dbid
|
protected int |
dbversion
|
protected char |
init
|
static char |
INIT_EAGER
eager creation and delayed initialization |
static char |
INIT_IMMEDIATE
eager creation and immediate initialization |
static char |
INIT_LAZY
lazy creation and delayed initialization |
static char |
INIT_REQUIRED
lazy creation and immediate initialization |
protected String |
name
|
protected int |
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 | |
|---|---|
AbstractDescriptor()
|
|
AbstractDescriptor(String name)
|
|
| Method Summary | |
|---|---|
Long |
getDbid()
the db primary key. |
String |
getName()
the name of this descriptor |
Class<?> |
getType(WireDefinition wireDefinition)
the type of the produced object or null if that is not available |
void |
initialize(Object object,
WireContext wireContext)
called by the WireContext to initialize the specified object. |
boolean |
isDelayable()
Checks if the initialization should be done during the construction phase or if it can be done later. |
boolean |
isEagerInit()
if eager initialization is set, it means that an object must be created immediately during construction of the WireContext. |
void |
setInit(char init)
see section 'Initialization' of WireContext |
void |
setName(String name)
|
| 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 |
|---|
construct |
| Methods inherited from interface org.ow2.orchestra.pvm.internal.util.Observable |
|---|
addListener, addListener, addListener, fire, fire, removeListener |
| Field Detail |
|---|
protected long dbid
protected int dbversion
protected int version
protected String name
public static final char INIT_LAZY
public static final char INIT_EAGER
public static final char INIT_REQUIRED
public static final char INIT_IMMEDIATE
protected char init
| Constructor Detail |
|---|
public AbstractDescriptor()
public AbstractDescriptor(String name)
| Method Detail |
|---|
public Class<?> getType(WireDefinition wireDefinition)
Descriptor
getType in interface Descriptorpublic boolean isEagerInit()
DescriptorWireContext.
isEagerInit in interface Descriptorpublic boolean isDelayable()
Descriptor
isDelayable in interface Descriptorfalse if the initialization should be done during the
creation phase, true if it can be done later.
public void initialize(Object object,
WireContext wireContext)
DescriptorWireContext section
lifecycle.
initialize in interface Descriptorobject - object to initialize.wireContext - the context in which the object will be initialized.public Long getDbid()
public String getName()
Descriptor
getName in interface Descriptorpublic void setName(String name)
public void setInit(char init)
WireContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||