org.mule.component
Class ComponentLifecycleManager

java.lang.Object
  extended by org.mule.lifecycle.AbstractLifecycleManager<O>
      extended by org.mule.lifecycle.SimpleLifecycleManager<Component>
          extended by org.mule.component.ComponentLifecycleManager
All Implemented Interfaces:
LifecycleManager

public class ComponentLifecycleManager
extends SimpleLifecycleManager<Component>

The lifecycle manager responsible for managing lifecycle transitions for a Mule service. The Mule service adds some additional states, namely pause and resume. The lifecycle manager manages lifecycle notifications and logging as well.


Field Summary
protected  Log logger
          logger used by this class
protected  MuleContext muleContext
           
 
Fields inherited from class org.mule.lifecycle.AbstractLifecycleManager
completedPhases, currentPhase, executingPhase, lifecycleManagerId, object, phaseNames, state
 
Fields inherited from interface org.mule.api.lifecycle.LifecycleManager
NOT_IN_LIFECYCLE_PHASE
 
Constructor Summary
ComponentLifecycleManager(String name, Component component)
           
 
Method Summary
 void fireDisposePhase(LifecycleCallback<Component> callback)
           
 void fireInitialisePhase(LifecycleCallback<Component> callback)
           
 void fireStartPhase(LifecycleCallback<Component> callback)
           
 void fireStopPhase(LifecycleCallback<Component> callback)
           
 
Methods inherited from class org.mule.lifecycle.SimpleLifecycleManager
fireLifecycle, registerTransitions
 
Methods inherited from class org.mule.lifecycle.AbstractLifecycleManager
addDirectTransition, checkPhase, createLifecycleState, getCurrentPhase, getExecutingPhase, getLifecycleObject, getState, invokePhase, isDirectTransition, isDirectTransition, isPhaseComplete, notifyTransition, registerLifecycleCallback, reset, setCurrentPhase, setExecutingPhase
 
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


muleContext

protected MuleContext muleContext
Constructor Detail

ComponentLifecycleManager

public ComponentLifecycleManager(String name,
                                 Component component)
Method Detail

fireInitialisePhase

public void fireInitialisePhase(LifecycleCallback<Component> callback)
                         throws InitialisationException
Specified by:
fireInitialisePhase in class SimpleLifecycleManager<Component>
Throws:
InitialisationException

fireStartPhase

public void fireStartPhase(LifecycleCallback<Component> callback)
                    throws MuleException
Specified by:
fireStartPhase in class SimpleLifecycleManager<Component>
Throws:
MuleException

fireStopPhase

public void fireStopPhase(LifecycleCallback<Component> callback)
                   throws MuleException
Specified by:
fireStopPhase in class SimpleLifecycleManager<Component>
Throws:
MuleException

fireDisposePhase

public void fireDisposePhase(LifecycleCallback<Component> callback)
Specified by:
fireDisposePhase in class SimpleLifecycleManager<Component>


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.