|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.lifecycle.DefaultLifecycleDescriptor
public class DefaultLifecycleDescriptor
The descriptor for a typically used life-cycle scheme with "init", "verify", "dispose", "start", "stop", "open", "close" supported.
Zephyr Business Solution
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_CLOSER_NAME
The default key of the close phase. |
static java.lang.String |
DEFAULT_DISPOSER_NAME
The default key of the dispose phase. |
static java.lang.String |
DEFAULT_INITIALIZER_NAME
The default key of the init phase. |
static java.lang.String |
DEFAULT_OPENER_NAME
The default key of the open phase. |
static java.lang.String |
DEFAULT_STARTER_NAME
The default key of the start phase. |
static java.lang.String |
DEFAULT_STOPPER_NAME
The default key of the stop phase. |
static java.lang.String |
DEFAULT_VERIFIER_NAME
The default key of the verify phase. |
| Constructor Summary | |
|---|---|
DefaultLifecycleDescriptor()
To create a LifecycleDescriptor object. |
|
| Method Summary | |
|---|---|
void |
close(LifecycleManager lm)
To invoke the "close" phase for the objects stored in the LifecycleManager object. |
DefaultLifecycleDescriptor |
closer(Lifecycle lc,
Procedure proc)
To register the "close" phase into a Lifecycle object. The phase allows re-entry. |
DefaultLifecycleDescriptor |
closer(Lifecycle lc,
Procedure proc,
boolean reentrant)
To register the "close" phase into a Lifecycle object. |
void |
dispose(LifecycleManager lm)
To invoke the "dispose" phase for the objects stored in the LifecycleManager object. |
DefaultLifecycleDescriptor |
disposer(Lifecycle lc,
Procedure proc)
To register the "dispose" phase into a Lifecycle object. The phase ignores re-entry. |
DefaultLifecycleDescriptor |
disposer(Lifecycle lc,
Procedure proc,
boolean reentrant)
To register the "dispose" phase into a Lifecycle object. |
Phase |
getCloser()
To get the "closer" phase. |
Phase |
getDisposer()
To get the "disposer" phase. |
Phase |
getInitializer()
To get the "init" phase. |
Phase |
getOpener()
To get the "open" phase. |
Phase |
getStarter()
To get the "start" phase. |
Phase |
getStopper()
To get the "stop" phase. |
Phase |
getVerifier()
To get the "verify" phase. |
void |
init(LifecycleManager lm)
To invoke the "init" phase for the objects stored in the LifecycleManager object. |
DefaultLifecycleDescriptor |
initializer(Lifecycle lc,
Procedure proc)
To register the "init" phase into a Lifecycle object. The phase ignores re-entry. |
DefaultLifecycleDescriptor |
initializer(Lifecycle lc,
Procedure proc,
boolean reentrant)
To register the "init" phase into a Lifecycle object. |
void |
open(LifecycleManager lm)
To invoke the "open" phase for the objects stored in the LifecycleManager object. |
DefaultLifecycleDescriptor |
opener(Lifecycle lc,
Procedure proc)
To register the "open" phase into a Lifecycle object. The phase allows re-entry. |
DefaultLifecycleDescriptor |
opener(Lifecycle lc,
Procedure proc,
boolean reentrant)
To register the "open" phase into a Lifecycle object. |
void |
setCloser(Phase closer)
To set the "close" phase. |
void |
setDisposer(Phase disposer)
To set the "dispose" phase. |
void |
setInitializer(Phase initializer)
To set the "init" phase. |
void |
setOpener(Phase opener)
To set the "open" phase. |
void |
setStarter(Phase starter)
To set the "start" phase. |
void |
setStopper(Phase stopper)
To set the "stop" phase. |
void |
setVerifier(Phase verifier)
To set the "verify" phase. |
void |
start(LifecycleManager lm)
To invoke the "start" phase for the objects stored in the LifecycleManager object. |
DefaultLifecycleDescriptor |
starter(Lifecycle lc,
Procedure proc)
To register the "start" phase into a Lifecycle object. The phase allows re-entry. |
DefaultLifecycleDescriptor |
starter(Lifecycle lc,
Procedure proc,
boolean reentrant)
To register the "start" phase into a Lifecycle object. |
void |
stop(LifecycleManager lm)
To invoke the "stop" phase for the objects stored in the LifecycleManager object. |
DefaultLifecycleDescriptor |
stopper(Lifecycle lc,
Procedure proc)
To register the "stop" phase into a Lifecycle object. The phase allows re-entry. |
DefaultLifecycleDescriptor |
stopper(Lifecycle lc,
Procedure proc,
boolean reentrant)
To register the "stop" phase into a Lifecycle object. |
DefaultLifecycleDescriptor |
verifier(Lifecycle lc,
Procedure proc)
To register the "verify" phase into a Lifecycle object. The phase allows re-entry. |
DefaultLifecycleDescriptor |
verifier(Lifecycle lc,
Procedure proc,
boolean reentrant)
To register the "verify" phase into a Lifecycle object. |
void |
verify(LifecycleManager lm)
To invoke the "verify" phase for the objects stored in the LifecycleManager object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_OPENER_NAME
public static final java.lang.String DEFAULT_CLOSER_NAME
public static final java.lang.String DEFAULT_INITIALIZER_NAME
public static final java.lang.String DEFAULT_VERIFIER_NAME
public static final java.lang.String DEFAULT_DISPOSER_NAME
public static final java.lang.String DEFAULT_STARTER_NAME
public static final java.lang.String DEFAULT_STOPPER_NAME
| Constructor Detail |
|---|
public DefaultLifecycleDescriptor()
To create a LifecycleDescriptor object.
By default,
init, open, start phases are initialized with the default key and a exception printer
that prints exception thrown out of the procedure to the System.err.
dispose, close, stop phases are initialized with the default key and a exception thrower
that will stop the execution when any phase of any object fails.
| Method Detail |
|---|
public void open(LifecycleManager lm)
throws java.lang.Throwable
lm - the LifecycleManager object.
java.lang.Throwable - when any exception happens.
public void close(LifecycleManager lm)
throws java.lang.Throwable
lm - the LifecycleManager object.
java.lang.Throwable - when any exception happens.
public void init(LifecycleManager lm)
throws java.lang.Throwable
lm - the LifecycleManager object.
java.lang.Throwable - when any exception happens.
public void dispose(LifecycleManager lm)
throws java.lang.Throwable
lm - the LifecycleManager object.
java.lang.Throwable - when any exception happens.
public void verify(LifecycleManager lm)
throws java.lang.Throwable
lm - the LifecycleManager object.
java.lang.Throwable - when any exception happens.
public void start(LifecycleManager lm)
throws java.lang.Throwable
lm - the LifecycleManager object.
java.lang.Throwable - when any exception happens.
public void stop(LifecycleManager lm)
throws java.lang.Throwable
lm - the LifecycleManager object.
java.lang.Throwable - when any exception happens.
public DefaultLifecycleDescriptor opener(Lifecycle lc,
Procedure proc,
boolean reentrant)
lc - the Lifecycle object.proc - the Procedure for the phase.reentrant - whether the phase is reentrant.
public DefaultLifecycleDescriptor closer(Lifecycle lc,
Procedure proc,
boolean reentrant)
lc - the Lifecycle object.proc - the Procedure for the phase.reentrant - whether the phase is reentrant.
public DefaultLifecycleDescriptor initializer(Lifecycle lc,
Procedure proc,
boolean reentrant)
lc - the Lifecycle object.proc - the Procedure for the phase.reentrant - whether the phase is reentrant.
public DefaultLifecycleDescriptor disposer(Lifecycle lc,
Procedure proc,
boolean reentrant)
lc - the Lifecycle object.proc - the Procedure for the phase.reentrant - whether the phase is reentrant.
public DefaultLifecycleDescriptor verifier(Lifecycle lc,
Procedure proc,
boolean reentrant)
lc - the Lifecycle object.proc - the Procedure for the phase.reentrant - whether the phase is reentrant.
public DefaultLifecycleDescriptor starter(Lifecycle lc,
Procedure proc,
boolean reentrant)
lc - the Lifecycle object.proc - the Procedure for the phase.reentrant - whether the phase is reentrant.
public DefaultLifecycleDescriptor stopper(Lifecycle lc,
Procedure proc,
boolean reentrant)
lc - the Lifecycle object.proc - the Procedure for the phase.reentrant - whether the phase is reentrant.
public DefaultLifecycleDescriptor opener(Lifecycle lc,
Procedure proc)
lc - the Lifecycle object.proc - the Procedure for the phase.
public DefaultLifecycleDescriptor closer(Lifecycle lc,
Procedure proc)
lc - the Lifecycle object.proc - the Procedure for the phase.
public DefaultLifecycleDescriptor initializer(Lifecycle lc,
Procedure proc)
lc - the Lifecycle object.proc - the Procedure for the phase.
public DefaultLifecycleDescriptor disposer(Lifecycle lc,
Procedure proc)
lc - the Lifecycle object.proc - the Procedure for the phase.
public DefaultLifecycleDescriptor verifier(Lifecycle lc,
Procedure proc)
lc - the Lifecycle object.proc - the Procedure for the phase.
public DefaultLifecycleDescriptor starter(Lifecycle lc,
Procedure proc)
lc - the Lifecycle object.proc - the Procedure for the phase.
public DefaultLifecycleDescriptor stopper(Lifecycle lc,
Procedure proc)
lc - the Lifecycle object.proc - the Procedure for the phase.
public Phase getCloser()
public void setCloser(Phase closer)
closer - the phase.public Phase getDisposer()
public void setDisposer(Phase disposer)
disposer - the phase.public Phase getInitializer()
public void setInitializer(Phase initializer)
initializer - the phase.public Phase getOpener()
public void setOpener(Phase opener)
opener - the phase.public Phase getStarter()
public void setStarter(Phase starter)
starter - the phase.public Phase getStopper()
public void setStopper(Phase stopper)
stopper - the phase.public Phase getVerifier()
public void setVerifier(Phase verifier)
verifier - the phase.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||