T
- Type of the object that we need to manage the lifecyclepublic class DefaultLifecycleManager<T extends Lifecycle> extends SimpleLifecycleManager<T>
Default implementation of a SimpleLifecycleManager
it allows Lifecycle
objects to manage their
lifecycle easily.
completedPhases, currentPhase, executingPhase, lifecycleManagerId, logger, object, phaseNames, state
NOT_IN_LIFECYCLE_PHASE
Constructor and Description |
---|
DefaultLifecycleManager(String id,
T object) |
Modifier and Type | Method and Description |
---|---|
void |
fireDisposePhase(LifecycleCallback<T> callback) |
void |
fireInitialisePhase(LifecycleCallback<T> callback) |
void |
fireStartPhase(LifecycleCallback<T> callback) |
void |
fireStopPhase(LifecycleCallback<T> callback) |
fireLifecycle, registerTransitions
addDirectTransition, checkPhase, createLifecycleState, getCurrentPhase, getExecutingPhase, getLifecycleObject, getState, invokePhase, isDirectTransition, isDirectTransition, isPhaseComplete, notifyTransition, registerLifecycleCallback, reset, setCurrentPhase, setExecutingPhase
public void fireInitialisePhase(LifecycleCallback<T> callback) throws InitialisationException
fireInitialisePhase
in class SimpleLifecycleManager<T extends Lifecycle>
InitialisationException
public void fireStartPhase(LifecycleCallback<T> callback) throws MuleException
fireStartPhase
in class SimpleLifecycleManager<T extends Lifecycle>
MuleException
public void fireStopPhase(LifecycleCallback<T> callback) throws MuleException
fireStopPhase
in class SimpleLifecycleManager<T extends Lifecycle>
MuleException
public void fireDisposePhase(LifecycleCallback<T> callback)
fireDisposePhase
in class SimpleLifecycleManager<T extends Lifecycle>
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.