public class RegistryLifecycleManager extends AbstractLifecycleManager<Registry>
| Modifier and Type | Field and Description |
|---|---|
protected SortedMap<String,LifecycleCallback> |
callbacks |
protected MuleContext |
muleContext |
protected Map<String,LifecyclePhase> |
phases |
completedPhases, currentPhase, executingPhase, lifecycleManagerId, logger, object, phaseNames, state| Constructor and Description |
|---|
RegistryLifecycleManager(String id,
Registry object,
Map<String,LifecyclePhase> phases) |
RegistryLifecycleManager(String id,
Registry object,
MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyCompletedPhases(Object object)
Successively applies all completed lifecycle phase to an object.
|
void |
applyPhase(Object object,
String startPhase,
String toPhase)
Applies lifecycle phase to an object independent of the current lifecycle phase.
|
protected void |
doOnConnectException(ConnectException ce) |
void |
fireLifecycle(String destinationPhase)
Applies lifecycle phase to a collection of objects.
|
protected void |
registerPhase(String phaseName,
LifecyclePhase phase) |
protected void |
registerPhase(String phaseName,
LifecyclePhase phase,
LifecycleCallback callback) |
protected void |
registerPhases() |
protected void |
registerTransitions() |
addDirectTransition, checkPhase, createLifecycleState, getCurrentPhase, getExecutingPhase, getLastPhaseExecuted, getLifecycleObject, getState, invokePhase, isDirectTransition, isDirectTransition, isLastPhaseExecutionFailed, isPhaseComplete, notifyTransition, registerLifecycleCallback, reset, setCurrentPhase, setExecutingPhaseprotected Map<String,LifecyclePhase> phases
protected SortedMap<String,LifecycleCallback> callbacks
protected MuleContext muleContext
public RegistryLifecycleManager(String id, Registry object, MuleContext muleContext)
public RegistryLifecycleManager(String id, Registry object, Map<String,LifecyclePhase> phases)
protected void registerPhases()
protected void registerTransitions()
registerTransitions in class AbstractLifecycleManager<Registry>protected void registerPhase(String phaseName, LifecyclePhase phase)
protected void registerPhase(String phaseName, LifecyclePhase phase, LifecycleCallback callback)
public void fireLifecycle(String destinationPhase) throws org.mule.runtime.api.lifecycle.LifecycleException
LifecycleManagerfireLifecycle in interface LifecycleManagerfireLifecycle in class AbstractLifecycleManager<Registry>destinationPhase - that phase to execute nextorg.mule.runtime.api.lifecycle.LifecycleException - if the phase is not a valid transition of does not exist on this lifecycle managerprotected void doOnConnectException(ConnectException ce) throws org.mule.runtime.api.lifecycle.LifecycleException
doOnConnectException in class AbstractLifecycleManager<Registry>org.mule.runtime.api.lifecycle.LifecycleExceptionpublic void applyPhase(Object object, String startPhase, String toPhase) throws org.mule.runtime.api.lifecycle.LifecycleException
startPhase
(not inclusive) and the endPhase will be executed.applyPhase in interface LifecycleManagerapplyPhase in class AbstractLifecycleManager<Registry>object - the object to apply lifecycle tostartPhase - the lifecycle phase the object is currently in. Must not be null.toPhase - the lifecycle phase to transition the object to. Must not be null.org.mule.runtime.api.lifecycle.LifecycleException - if there is an exception while invoking lifecycle on the objectpublic void applyCompletedPhases(Object object) throws org.mule.runtime.api.lifecycle.LifecycleException
applyCompletedPhases in interface LifecycleManagerapplyCompletedPhases in class AbstractLifecycleManager<Registry>object - the object to which the lifecycle should be appliedorg.mule.runtime.api.lifecycle.LifecycleException - if there is an error while applying lifecycle to the objectCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.