public class MuleContextLifecycleManager extends AbstractLifecycleManager<MuleContext> implements MuleContextAware
RegistryLifecycleManager
and will
invoke lifecycle on the registry instance for the MuleContext. This class must only be used by the MuleContext.completedPhases, currentPhase, executingPhase, lifecycleManagerId, logger, object, phaseNames, state
NOT_IN_LIFECYCLE_PHASE
Constructor and Description |
---|
MuleContextLifecycleManager() |
Modifier and Type | Method and Description |
---|---|
void |
fireLifecycle(String destinationPhase)
Applies lifecycle phase to a collection of objects.
|
protected void |
invokePhase(String phase,
Object object,
LifecycleCallback callback) |
protected void |
registerTransitions() |
void |
setMuleContext(MuleContext context) |
addDirectTransition, checkPhase, createLifecycleState, getCurrentPhase, getExecutingPhase, getLifecycleObject, getState, isDirectTransition, isDirectTransition, isPhaseComplete, notifyTransition, registerLifecycleCallback, reset, setCurrentPhase, setExecutingPhase
protected void registerTransitions()
registerTransitions
in class AbstractLifecycleManager<MuleContext>
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public void fireLifecycle(String destinationPhase) throws LifecycleException
LifecycleManager
fireLifecycle
in interface LifecycleManager
fireLifecycle
in class AbstractLifecycleManager<MuleContext>
destinationPhase
- that phase to execute nextLifecycleException
- if the phase is not a valid transition of does not exist on this lifecycle managerprotected void invokePhase(String phase, Object object, LifecycleCallback callback) throws LifecycleException
invokePhase
in class AbstractLifecycleManager<MuleContext>
LifecycleException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.