org.mule.lifecycle
Class GenericLifecycleManager

java.lang.Object
  extended by org.mule.lifecycle.GenericLifecycleManager
All Implemented Interfaces:
LifecycleManager
Direct Known Subclasses:
DefaultLifecycleManager

public class GenericLifecycleManager
extends Object
implements LifecycleManager


Field Summary
protected  Set completedPhases
           
protected  String currentPhase
           
protected  String executingPhase
           
protected  Map index
           
protected  ListOrderedSet lifecycles
           
protected  Log logger
          logger used by this class
protected static NotInLifecyclePhase notInLifecyclePhase
           
 
Constructor Summary
GenericLifecycleManager()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

GenericLifecycleManager

public GenericLifecycleManager()
Method Detail

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.