|
||||||||||
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(String name)
Will check that the phase passed in is a valid next phase for this lifecycle manager. |
void |
fireLifecycle(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. |
LifecycleState |
getState()
Provides access to a state machine for this lifecycle manager. |
boolean |
isDirectTransition(String phase)
|
boolean |
isPhaseComplete(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(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 managerString getCurrentPhase()
getExecutingPhase()
to get the phase being executed.
String getExecutingPhase()
void reset()
boolean isPhaseComplete(String phaseName)
phaseName
- the name of the pahse to check for
void checkPhase(String name) throws IllegalStateException
name
- The name of the lifecycle to validate as a valid next transition
IllegalStateException
- if the lifecycle name is not recognised or the phase is not valid for the current lifecycle stateLifecycleState getState()
boolean isDirectTransition(String phase)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |