org.mule.api.lifecycle
Interface LifecyclePhase
- All Known Implementing Classes:
- ContainerManagedLifecyclePhase, DefaultLifecyclePhase, MuleContextDisposePhase, MuleContextInitialisePhase, MuleContextStartPhase, MuleContextStopPhase, NotInLifecyclePhase, TransientRegistryDisposePhase, TransientRegistryInitialisePhase
public interface LifecyclePhase
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
fireLifecycle
void fireLifecycle(MuleContext muleContext,
String currentPhase)
throws MuleException
- Throws:
MuleException
addOrderedLifecycleObject
void addOrderedLifecycleObject(LifecycleObject lco)
removeOrderedLifecycleObject
void removeOrderedLifecycleObject(LifecycleObject lco)
getOrderedLifecycleObjects
Set getOrderedLifecycleObjects()
setOrderedLifecycleObjects
void setOrderedLifecycleObjects(Set orderedLifecycleObjects)
getIgnoredObjectTypes
Class[] getIgnoredObjectTypes()
setIgnoredObjectTypes
void setIgnoredObjectTypes(Class[] ignorredObjectTypes)
getLifecycleClass
Class getLifecycleClass()
setLifecycleClass
void setLifecycleClass(Class lifecycleClass)
getName
String getName()
getSupportedPhases
Set getSupportedPhases()
setSupportedPhases
void setSupportedPhases(Set supportedPhases)
registerSupportedPhase
void registerSupportedPhase(String phase)
isPhaseSupported
boolean isPhaseSupported(String phase)
applyLifecycle
void applyLifecycle(Object o)
throws LifecycleException
- Throws:
LifecycleException
getRegistryScope
int getRegistryScope()
setRegistryScope
void setRegistryScope(int registryScope)
getOppositeLifecyclePhase
String getOppositeLifecyclePhase()
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.