org.mule.api.lifecycle
Interface LifecyclePhase
- All Superinterfaces:
- NamedObject
- All Known Implementing Classes:
- ContainerManagedLifecyclePhase, DefaultLifecyclePhase, MuleContextDisposePhase, MuleContextInitialisePhase, MuleContextStartPhase, MuleContextStopPhase, NotInLifecyclePhase, PausePhase, ResumePhase
public interface LifecyclePhase
- extends NamedObject
Encapsulates the notion of a lifecycle phase i.e. 'stop'. Implementations of this class are responsible
for invoking the lifecycle phase on a set of objects and also for knowing which phases can preceed and go
after it. This objects are configurable so that lifecycles can be customised.
Note that users wouldn't normally customise the lifecycle of the server.
ALL_PHASES
static final String ALL_PHASES
- See Also:
- Constant Field Values
addOrderedLifecycleObject
void addOrderedLifecycleObject(LifecycleObject lco)
removeOrderedLifecycleObject
void removeOrderedLifecycleObject(LifecycleObject lco)
getOrderedLifecycleObjects
Set<LifecycleObject> getOrderedLifecycleObjects()
setOrderedLifecycleObjects
void setOrderedLifecycleObjects(Set<LifecycleObject> orderedLifecycleObjects)
getIgnoredObjectTypes
Class<?>[] getIgnoredObjectTypes()
setIgnoredObjectTypes
void setIgnoredObjectTypes(Class<?>[] ignorredObjectTypes)
getLifecycleClass
Class<?> getLifecycleClass()
setLifecycleClass
void setLifecycleClass(Class<?> lifecycleClass)
getSupportedPhases
Set<String> getSupportedPhases()
setSupportedPhases
void setSupportedPhases(Set<String> supportedPhases)
registerSupportedPhase
void registerSupportedPhase(String phase)
isPhaseSupported
boolean isPhaseSupported(String phase)
applyLifecycle
void applyLifecycle(Object o)
throws LifecycleException
- Throws:
LifecycleException
getOppositeLifecyclePhase
String getOppositeLifecyclePhase()
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.