org.mule.lifecycle
Class GenericLifecycleManager
java.lang.Object
org.mule.lifecycle.GenericLifecycleManager
- All Implemented Interfaces:
- LifecycleManager
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 |
notInLifecyclePhase
protected static final 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
- Applies lifecycle phase to all objects in the Registry.
- Specified by:
firePhase
in interface LifecycleManager
- Throws:
MuleException
applyPhase
public LifecyclePhase applyPhase(Collection objects,
String phase)
throws MuleException
- Description copied from interface:
LifecycleManager
- Applies lifecycle phase to a collection of objects.
- Specified by:
applyPhase
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
applyCompletedPhases
public void applyCompletedPhases(Object object)
throws MuleException
- Description copied from interface:
LifecycleManager
- Successively applies all completed lifecycle phase to an object.
- Specified by:
applyCompletedPhases
in interface LifecycleManager
- Throws:
MuleException
checkPhase
public void checkPhase(String name)
throws IllegalStateException
- Specified by:
checkPhase
in interface LifecycleManager
- Throws:
IllegalStateException
lookupPhase
protected LifecyclePhase lookupPhase(String phase)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.