|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.lifecycle.GenericLifecycleManager
public class GenericLifecycleManager
| Field Summary | |
|---|---|
protected Set |
completedPhases
|
protected String |
currentPhase
|
protected String |
executingPhase
|
protected Map<String,Integer> |
index
|
protected ListOrderedSet |
lifecycles
|
protected static NotInLifecyclePhase |
notInLifecyclePhase
|
| Constructor Summary | |
|---|---|
GenericLifecycleManager()
|
|
| Method Summary | |
|---|---|
void |
applyCompletedPhases(Object object)
Successively applies all completed lifecycle phase to an object. |
void |
applyPhase(Object object,
String phase)
|
LifecyclePhase |
applyPhase(Registry registry,
String phase)
Applies lifecycle phase to a collection of objects. |
void |
applyPhases(Object object,
String phase)
Applies lifecycle phase to an object independent of the current lifecycle phase. |
void |
checkPhase(String name)
|
void |
firePhase(MuleContext muleContext,
String phase)
Applies lifecycle phase to all objects in the Registry. |
String |
getCurrentPhase()
|
String |
getExecutingPhase()
Returns the name of the currently executing phase or null if there is not current phase. |
Set<LifecyclePhase> |
getLifecycles()
|
boolean |
isPhaseComplete(String phaseName)
|
protected LifecyclePhase |
lookupPhase(String phase)
|
void |
registerLifecycle(LifecyclePhase phase)
|
void |
reset()
|
protected void |
setCurrentPhase(LifecyclePhase phase)
|
protected void |
setExecutingPhase(String phase)
|
void |
setLifecycles(Set<LifecyclePhase> lifecycles)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final NotInLifecyclePhase notInLifecyclePhase
protected String currentPhase
protected String executingPhase
protected ListOrderedSet lifecycles
protected Map<String,Integer> index
protected Set completedPhases
| Constructor Detail |
|---|
public GenericLifecycleManager()
| Method Detail |
|---|
public Set<LifecyclePhase> getLifecycles()
getLifecycles in interface LifecycleManagerpublic void setLifecycles(Set<LifecyclePhase> lifecycles)
setLifecycles in interface LifecycleManagerpublic void registerLifecycle(LifecyclePhase phase)
registerLifecycle in interface LifecycleManager
public void firePhase(MuleContext muleContext,
String phase)
throws MuleException
firePhase in interface LifecycleManagerMuleException
public LifecyclePhase applyPhase(Registry registry,
String phase)
throws MuleException
LifecycleManager
applyPhase in interface LifecycleManagerMuleException
public void applyPhase(Object object,
String phase)
throws MuleException
applyPhase in interface LifecycleManagerMuleException
public void applyPhases(Object object,
String phase)
throws MuleException
LifecycleManager
applyPhases in interface LifecycleManagerphase - the final phase to execute on the object. All phases inbetween current and end will be executed
MuleExceptionpublic 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 LifecycleManager
public void applyCompletedPhases(Object object)
throws MuleException
LifecycleManager
applyCompletedPhases in interface LifecycleManagerMuleException
public void checkPhase(String name)
throws IllegalStateException
checkPhase in interface LifecycleManagerIllegalStateException
protected LifecyclePhase lookupPhase(String phase)
throws IllegalArgumentException
IllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||