public interface LifecycleManager
Modifier and Type | Field and Description |
---|---|
static NotInLifecyclePhase |
NOT_IN_LIFECYCLE_PHASE |
Modifier and Type | Method and Description |
---|---|
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
|
static final NotInLifecyclePhase NOT_IN_LIFECYCLE_PHASE
void fireLifecycle(String phase) throws LifecycleException
phase
- that phase to execute nextLifecycleException
- 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 forvoid checkPhase(String name) throws IllegalStateException
name
- The name of the lifecycle to validate as a valid next transitionIllegalStateException
- if the lifecycle name is not recognised or the phase is not valid for the current lifecycle stateLifecycleState getState()
boolean isDirectTransition(String phase)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.