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.


Field Summary
static String ALL_PHASES
           
 
Method Summary
 void addOrderedLifecycleObject(LifecycleObject lco)
           
 void applyLifecycle(Object o)
           
 Class<?>[] getIgnoredObjectTypes()
           
 Class<?> getLifecycleClass()
           
 String getOppositeLifecyclePhase()
           
 Set<LifecycleObject> getOrderedLifecycleObjects()
           
 Set<String> getSupportedPhases()
           
 boolean isPhaseSupported(String phase)
           
 void registerSupportedPhase(String phase)
           
 void removeOrderedLifecycleObject(LifecycleObject lco)
           
 void setIgnoredObjectTypes(Class<?>[] ignorredObjectTypes)
           
 void setLifecycleClass(Class<?> lifecycleClass)
           
 void setOrderedLifecycleObjects(Set<LifecycleObject> orderedLifecycleObjects)
           
 void setSupportedPhases(Set<String> supportedPhases)
           
 
Methods inherited from interface org.mule.api.NamedObject
getName
 

Field Detail

ALL_PHASES

static final String ALL_PHASES
See Also:
Constant Field Values
Method Detail

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.