|
||||||||||
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.
Field Summary | |
---|---|
static NotInLifecyclePhase |
NOT_IN_LIFECYCLE_PHASE
|
Method Summary | |
---|---|
void |
checkPhase(java.lang.String name)
Will check that the phase passed in is a valid next phase for this lifecycle manager. |
void |
fireLifecycle(java.lang.String phase)
Applies lifecycle phase to a collection of objects. |
java.lang.String |
getCurrentPhase()
The current phase for the lifecycle manager. |
java.lang.String |
getExecutingPhase()
Returns the lifecycle phase being executed. |
LifecycleState |
getState()
Provides access to a state machine for this lifecycle manager. |
boolean |
isDirectTransition(java.lang.String phase)
|
boolean |
isPhaseComplete(java.lang.String phaseName)
Checks that a phase has completed |
void |
reset()
Reset the lifecycle manager state back to 'not in lifecycle' phase |
Field Detail |
---|
static final NotInLifecyclePhase NOT_IN_LIFECYCLE_PHASE
Method Detail |
---|
void fireLifecycle(java.lang.String phase) throws LifecycleException
phase
- that phase to execute next
LifecycleException
- if the phase is not a valid transition of does not exist on this lifecycle managerjava.lang.String getCurrentPhase()
getExecutingPhase()
to get the phase being executed.
java.lang.String getExecutingPhase()
void reset()
boolean isPhaseComplete(java.lang.String phaseName)
phaseName
- the name of the pahse to check for
void checkPhase(java.lang.String name) throws java.lang.IllegalStateException
name
- The name of the lifecycle to validate as a valid next transition
java.lang.IllegalStateException
- if the lifecycle name is not recognised or the phase is not valid for the current lifecycle stateLifecycleState getState()
boolean isDirectTransition(java.lang.String phase)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |