public class GenericLifecycleManager extends Object implements LifecycleManager
| Modifier and Type | Field and Description |
|---|---|
protected Set |
completedPhases |
protected String |
currentPhase |
protected String |
executingPhase |
protected Map |
index |
protected org.apache.commons.collections.set.ListOrderedSet |
lifecycles |
protected static NotInLifecyclePhase |
notInLifecyclePhase |
| Constructor and Description |
|---|
GenericLifecycleManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyLifecycle(MuleContext muleContext,
Object object) |
void |
checkPhase(String name) |
void |
firePhase(MuleContext muleContext,
String phase) |
String |
getCurrentPhase() |
String |
getExecutingPhase()
Returns the name of the currently executing phase or null if there is not current phase
|
Set |
getLifecycles() |
boolean |
isPhaseComplete(String phaseName) |
void |
registerLifecycle(LifecyclePhase lci) |
void |
reset() |
protected void |
setCurrentPhase(LifecyclePhase phase) |
protected void |
setExecutingPhase(String phase) |
void |
setLifecycles(Set lifecycles) |
protected static final NotInLifecyclePhase notInLifecyclePhase
protected String currentPhase
protected String executingPhase
protected org.apache.commons.collections.set.ListOrderedSet lifecycles
protected Map index
protected Set completedPhases
public Set getLifecycles()
getLifecycles in interface LifecycleManagerpublic void setLifecycles(Set lifecycles)
setLifecycles in interface LifecycleManagerpublic void registerLifecycle(LifecyclePhase lci)
registerLifecycle in interface LifecycleManagerpublic void firePhase(MuleContext muleContext, String phase) throws MuleException
firePhase in interface LifecycleManagerMuleExceptionpublic String getCurrentPhase()
getCurrentPhase in interface LifecycleManagerpublic String getExecutingPhase()
getExecutingPhase in interface LifecycleManagerprotected void setCurrentPhase(LifecyclePhase phase)
protected void setExecutingPhase(String phase)
public void reset()
reset in interface LifecycleManagerpublic boolean isPhaseComplete(String phaseName)
isPhaseComplete in interface LifecycleManagerpublic void applyLifecycle(MuleContext muleContext, Object object) throws MuleException
applyLifecycle in interface LifecycleManagerMuleExceptionpublic void checkPhase(String name) throws IllegalStateException
checkPhase in interface LifecycleManagerIllegalStateExceptionCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.