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 LifecycleManager
public void setLifecycles(Set lifecycles)
setLifecycles
in interface LifecycleManager
public void registerLifecycle(LifecyclePhase lci)
registerLifecycle
in interface LifecycleManager
public void firePhase(MuleContext muleContext, String phase) throws MuleException
firePhase
in interface LifecycleManager
MuleException
public String getCurrentPhase()
getCurrentPhase
in interface LifecycleManager
public String getExecutingPhase()
getExecutingPhase
in interface LifecycleManager
protected void setCurrentPhase(LifecyclePhase phase)
protected void setExecutingPhase(String phase)
public void reset()
reset
in interface LifecycleManager
public boolean isPhaseComplete(String phaseName)
isPhaseComplete
in interface LifecycleManager
public void applyLifecycle(MuleContext muleContext, Object object) throws MuleException
applyLifecycle
in interface LifecycleManager
MuleException
public void checkPhase(String name) throws IllegalStateException
checkPhase
in interface LifecycleManager
IllegalStateException
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.