use of org.mule.runtime.core.internal.lifecycle.phases.MuleContextDisposePhase in project mule by mulesoft.
the class RegistryBrokerLifecycleManager method registerPhases.
@Override
protected void registerPhases(Registry registry) {
RegistryLifecycleCallback callback = new RegistryLifecycleCallback(this);
LifecycleCallback<AbstractRegistryBroker> emptyCallback = new EmptyLifecycleCallback<>();
registerPhase(Initialisable.PHASE_NAME, new MuleContextInitialisePhase(), emptyCallback);
registerPhase(Startable.PHASE_NAME, new MuleContextStartPhase(), callback);
registerPhase(Stoppable.PHASE_NAME, new MuleContextStopPhase(), callback);
registerPhase(Disposable.PHASE_NAME, new MuleContextDisposePhase(), emptyCallback);
}
use of org.mule.runtime.core.internal.lifecycle.phases.MuleContextDisposePhase in project mule by mulesoft.
the class RegistryLifecycleManager method registerPhases.
protected void registerPhases(Registry object) {
final RegistryLifecycleCallback<Object> callback = new RegistryLifecycleCallback<>(this);
final LifecycleCallback<AbstractRegistryBroker> emptyCallback = new EmptyLifecycleCallback<>();
registerPhase(NotInLifecyclePhase.PHASE_NAME, new NotInLifecyclePhase(), emptyCallback);
registerPhase(Initialisable.PHASE_NAME, new MuleContextInitialisePhase(), callback);
registerPhase(Startable.PHASE_NAME, new MuleContextStartPhase(), emptyCallback);
registerPhase(Stoppable.PHASE_NAME, new MuleContextStopPhase(), emptyCallback);
registerPhase(Disposable.PHASE_NAME, new MuleContextDisposePhase(), callback);
}
Aggregations