Search in sources :

Example 1 with EmptyLifecycleCallback

use of org.mule.runtime.core.internal.lifecycle.EmptyLifecycleCallback in project mule by mulesoft.

the class SpringRegistryLifecycleManager method registerPhases.

@Override
protected void registerPhases(Registry registry) {
    final LifecycleCallback<AbstractRegistryBroker> emptyCallback = new EmptyLifecycleCallback<>();
    registerPhase(NotInLifecyclePhase.PHASE_NAME, new NotInLifecyclePhase(), emptyCallback);
    registerPhase(Initialisable.PHASE_NAME, new SpringContextInitialisePhase(), new SpringLifecycleCallback(this, (SpringRegistry) registry));
    registerPhase(Startable.PHASE_NAME, new MuleContextStartPhase(), emptyCallback);
    registerPhase(Stoppable.PHASE_NAME, new MuleContextStopPhase(), emptyCallback);
    registerPhase(Disposable.PHASE_NAME, new SpringContextDisposePhase());
}
Also used : AbstractRegistryBroker(org.mule.runtime.core.internal.registry.AbstractRegistryBroker) EmptyLifecycleCallback(org.mule.runtime.core.internal.lifecycle.EmptyLifecycleCallback) MuleContextStartPhase(org.mule.runtime.core.internal.lifecycle.phases.MuleContextStartPhase) MuleContextStopPhase(org.mule.runtime.core.internal.lifecycle.phases.MuleContextStopPhase) NotInLifecyclePhase(org.mule.runtime.core.internal.lifecycle.phases.NotInLifecyclePhase)

Aggregations

EmptyLifecycleCallback (org.mule.runtime.core.internal.lifecycle.EmptyLifecycleCallback)1 MuleContextStartPhase (org.mule.runtime.core.internal.lifecycle.phases.MuleContextStartPhase)1 MuleContextStopPhase (org.mule.runtime.core.internal.lifecycle.phases.MuleContextStopPhase)1 NotInLifecyclePhase (org.mule.runtime.core.internal.lifecycle.phases.NotInLifecyclePhase)1 AbstractRegistryBroker (org.mule.runtime.core.internal.registry.AbstractRegistryBroker)1