org.mule.lifecycle
Class GenericLifecycleManager
java.lang.Object
org.mule.lifecycle.GenericLifecycleManager
- All Implemented Interfaces:
- LifecycleManager
- Direct Known Subclasses:
- DefaultLifecycleManager
public class GenericLifecycleManager
- extends Object
- implements LifecycleManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final transient Log logger
- logger used by this class
notInLifecyclePhase
protected static NotInLifecyclePhase notInLifecyclePhase
currentPhase
protected String currentPhase
executingPhase
protected String executingPhase
lifecycles
protected ListOrderedSet lifecycles
index
protected Map index
completedPhases
protected Set completedPhases
GenericLifecycleManager
public GenericLifecycleManager()
getLifecycles
public Set getLifecycles()
- Specified by:
getLifecycles
in interface LifecycleManager
setLifecycles
public void setLifecycles(Set lifecycles)
- Specified by:
setLifecycles
in interface LifecycleManager
registerLifecycle
public void registerLifecycle(LifecyclePhase lci)
- Specified by:
registerLifecycle
in interface LifecycleManager
firePhase
public void firePhase(MuleContext muleContext,
String phase)
throws MuleException
- Specified by:
firePhase
in interface LifecycleManager
- Throws:
MuleException
getCurrentPhase
public String getCurrentPhase()
- Specified by:
getCurrentPhase
in interface LifecycleManager
getExecutingPhase
public String getExecutingPhase()
- Returns the name of the currently executing phase or null if there is not current phase
- Specified by:
getExecutingPhase
in interface LifecycleManager
- Returns:
setCurrentPhase
protected void setCurrentPhase(LifecyclePhase phase)
setExecutingPhase
protected void setExecutingPhase(String phase)
reset
public void reset()
- Specified by:
reset
in interface LifecycleManager
isPhaseComplete
public boolean isPhaseComplete(String phaseName)
- Specified by:
isPhaseComplete
in interface LifecycleManager
applyLifecycle
public void applyLifecycle(MuleContext muleContext,
Object object)
throws MuleException
- Specified by:
applyLifecycle
in interface LifecycleManager
- Throws:
MuleException
checkPhase
public void checkPhase(String name)
throws IllegalStateException
- Specified by:
checkPhase
in interface LifecycleManager
- Throws:
IllegalStateException
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.