|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LifecycleManager
The LifecycleManager is responsible for managing the different lifecycle phases of the server and managing the transitions between lifecycle phases.
Method Summary | |
---|---|
void |
applyCompletedPhases(Object object)
Successively applies all completed lifecycle phase to an object. |
void |
applyPhase(Object object,
String phase)
Applies lifecycle phase to an object independent of the current lifecycle phase. |
void |
checkPhase(String name)
|
void |
fireLifecycle(Registry registry,
String phase)
Applies lifecycle phase to a collection of objects. |
String |
getCurrentPhase()
The current phase for the lifecycle manager. |
String |
getExecutingPhase()
Returns the lifecycle phase being executed. |
List<LifecyclePair> |
getLifecyclePairs()
The lifecycle pairs that will be invoked by this lifecycle manager |
LifecycleState |
getState()
Provides access to a state machine for this lifecycle manager. |
boolean |
isPhaseComplete(String phaseName)
|
void |
registerLifecycle(LifecyclePair lifecyclePair)
Register a lifecycle pair that will be invoked by this lifecycle manager The order in which the lifecycle pairs are registered will be the order in which the life cycle phases will be invoked the LifecyclePair.getBegin() phases will be called in order, the
LifecyclePair.getEnd() will be called in opposite order. |
void |
reset()
Reset the lifecycle manager state back to 'not in lifecycle' phase |
void |
setLifecyclePairs(List<LifecyclePair> lifecyclePairs)
The lifecycle pairs that will be invoked by this lifecycle manager The order the list will be the order in which the life cycle phases will be invoked the LifecyclePair.getBegin() phases will be called in order, the
LifecyclePair.getEnd() will be called in opposite order. |
Method Detail |
---|
List<LifecyclePair> getLifecyclePairs()
void setLifecyclePairs(List<LifecyclePair> lifecyclePairs)
LifecyclePair.getBegin()
phases will be called in order, the
LifecyclePair.getEnd()
will be called in opposite order. i.e. call initialise first and dispose last.
lifecyclePairs
- The lifecycle pairs that will be invoked by this lifecycle managervoid registerLifecycle(LifecyclePair lifecyclePair)
LifecyclePair.getBegin()
phases will be called in order, the
LifecyclePair.getEnd()
will be called in opposite order. i.e. call initialise first and dispose last.
lifecyclePair
- a lifecycle pair that will be invoked by this lifecycle managervoid fireLifecycle(Registry registry, String phase) throws MuleException
MuleException
void applyPhase(Object object, String phase) throws MuleException
endPhase
- the final phase to execute on the object. All phases inbetween current and end will be executed
MuleException
String getCurrentPhase()
getExecutingPhase()
to get the phase being executed.
String getExecutingPhase()
void reset()
boolean isPhaseComplete(String phaseName)
void applyCompletedPhases(Object object) throws MuleException
MuleException
void checkPhase(String name) throws IllegalStateException
IllegalStateException
LifecycleState getState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |