|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.util.DefaultObservable org.jbpm.wire.descriptor.AbstractDescriptor
public abstract class AbstractDescriptor
base class for Descriptor
s.
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 java.lang.String |
name
|
protected int |
version
|
Fields inherited from class org.jbpm.util.DefaultObservable |
---|
listeners |
Fields inherited from interface org.jbpm.wire.Descriptor |
---|
EVENT_CONSTRUCTED, EVENT_CONSTRUCTING, EVENT_INITIALIZING, EVENT_REMOVE, EVENT_SET |
Constructor Summary | |
---|---|
AbstractDescriptor()
|
|
AbstractDescriptor(java.lang.String name)
|
Method Summary | |
---|---|
java.lang.Long |
getDbid()
the db primary key. |
java.lang.String |
getName()
the name of this descriptor |
java.lang.Class<?> |
getType(WireDefinition wireDefinition)
the type of the produced object or null if that is not available |
void |
initialize(java.lang.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(java.lang.String name)
|
Methods inherited from class org.jbpm.util.DefaultObservable |
---|
addListener, addListener, addListener, fire, fire, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jbpm.wire.Descriptor |
---|
construct |
Methods inherited from interface org.jbpm.util.Observable |
---|
addListener, addListener, addListener, fire, fire, removeListener |
Field Detail |
---|
protected long dbid
protected int dbversion
protected int version
protected java.lang.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(java.lang.String name)
Method Detail |
---|
public java.lang.Class<?> getType(WireDefinition wireDefinition)
Descriptor
getType
in interface Descriptor
public boolean isEagerInit()
Descriptor
WireContext
.
isEagerInit
in interface Descriptor
public boolean isDelayable()
Descriptor
isDelayable
in interface Descriptor
false
if the initialization should be done during the creation phase, true
if it can be done later.public void initialize(java.lang.Object object, WireContext wireContext)
Descriptor
WireContext
section lifecycle.
initialize
in interface Descriptor
object
- object to initialize.wireContext
- the context in which the object will be initialized.public java.lang.Long getDbid()
public java.lang.String getName()
Descriptor
getName
in interface Descriptor
public void setName(java.lang.String name)
public void setInit(char init)
WireContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |