Interface ConfigurableLifecycleComponent<CTX>

Type Parameters:
CTX - the context used to initialize the implementing instance.
All Superinterfaces:
Configurable<CTX>, Destroyable, Pausable, Resumable, Startable, Stoppable
All Known Subinterfaces:
ComponentComposite.ExtendedComponentComposite<CTX,CON>, ConfigurableLifecycleComponent.ConfigurableLifecycleAutomaton<CTX>
All Known Implementing Classes:
AbstractComponentComposite.ExtendedCompositeComponentImpl, ConfigurableLifecycleAutomatonImpl

public interface ConfigurableLifecycleComponent<CTX> extends Configurable<CTX>, Startable, Pausable, Resumable, Stoppable, Destroyable
A component implementing the ConfigurableLifecycleComponent interface supports a life-cycle. I.e. such a component may be instructed from the outside to run through several stages from getting started till being destroyed. The valid state changes are mainly as follows: "initialize" - "start" - "pause" - "resume" - "stop" - "destroy" For example: "initialize" - "start" - "pause" - "resume" - "pause" - "resume" - "stop" - "start" - "pause" - "resume" - "stop" - "destroy" The LifecycleComponentHandle.LifecycleAutomatonHandle is a component managing various ConfigurableLifecycleComponents each identified by a dedicated handle. Operations on the ConfigurableLifecycleComponent are invoked by this LifecycleComponentHandle.LifecycleAutomatonHandle with a handle identifying the according ConfigurableLifecycleComponent. The ConfigurableLifecycleComponent contains the business-logic where as the LifecycleComponentHandle.LifecycleAutomatonHandle provides the frame for managing this business-logic. The LifecycleComponent.LifecycleAutomaton takes care of the correct life-cycle applied on a ConfigurableLifecycleComponent.