org.mule.lifecycle.phases
Class MuleContextDisposePhase
java.lang.Object
org.mule.lifecycle.phases.DefaultLifecyclePhase
org.mule.lifecycle.phases.MuleContextDisposePhase
- All Implemented Interfaces:
- MuleContextAware, LifecyclePhase, NamedObject
public class MuleContextDisposePhase
- extends DefaultLifecyclePhase
Objects are disposed of via the Registry since the Registry manages the creation/initialisation of the objects
it must also take care of disposing them. However, a user may want to initiate a dispose via the
DefaultMuleContext
so the dispose Lifecycle phase for the DefaultMuleContext
needs to call dispose on the Registry.
The MuleContextDisposePhase defines the lifecycle behaviour when the Mule context is disposed. The MuleContext is associated
with one or more registries that inherit the lifecycle of the MuleContext.
This phase is responsible for disposing objects. Any object that implements Disposable
will
have its Disposable.dispose()
method called. Objects are initialised in the order based on type:
Service
, Model
, Agent
, Connector
, followed
by any other object that implements Disposable
.
- Since:
- 3.0
- See Also:
MuleContext
,
LifecycleManager
,
Disposable
Methods inherited from class org.mule.lifecycle.phases.DefaultLifecyclePhase |
addOrderedLifecycleObject, getIgnoredObjectTypes, getLifecycleClass, getName, getOppositeLifecyclePhase, getOrderedLifecycleObjects, getSupportedPhases, ignoreType, isPhaseSupported, registerSupportedPhase, removeOrderedLifecycleObject, setIgnoredObjectTypes, setLifecycleClass, setMuleContext, setOrderedLifecycleObjects, setSupportedPhases, sortLifecycleInstances |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MuleContextDisposePhase
public MuleContextDisposePhase()
applyLifecycle
public void applyLifecycle(Object o)
throws LifecycleException
- Specified by:
applyLifecycle
in interface LifecyclePhase
- Overrides:
applyLifecycle
in class DefaultLifecyclePhase
- Throws:
LifecycleException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.