CTX - the context used to initialize the implementing instance.Configurable<CTX>, Destroyable, Pausable, Resumable, Startable, StoppableCompositeComponent.ExtendedCompositeComponent<CTX,CON>, ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton<CTX>CompositeComponentImpl.ExtendedCompositeComponentImpl, ConfigurableLifeCycleAutomatonImplpublic interface ConfigurableLifeCycleComponent<CTX> extends Configurable<CTX>, Startable, Pausable, Resumable, Stoppable, Destroyable
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.| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton<CTX> |
A system implementing the
ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton
interface supports managing ConfigurableLifeCycleComponent
instances and takes care that the open/close statuses are invoked in the
correct order by throwing according exceptions in case the
open/close-cycle is invoked in the wrong order. |
Configurable.ConfigureAutomaton<CTX>, Configurable.ConfigureBuilder<CTX,B extends Configurable.ConfigureBuilder<CTX,B>>Destroyable.DestroyAutomatonPausable.PauseAutomaton, Pausable.PauseBuilder<B extends Pausable.PauseBuilder<B>>, Pausable.UncheckedPausableResumable.ResumeAutomaton, Resumable.ResumeBuilder<B extends Resumable.ResumeBuilder<B>>, Resumable.UncheckedResumableStartable.StartAutomaton, Startable.StartBuilder<B extends Startable.StartBuilder<B>>, Startable.UncheckedStartableStoppable.StopAutomaton, Stoppable.StopBuilder<B extends Stoppable.StopBuilder<B>>, Stoppable.UncheckedStoppableinitialize, initializeUncheckeddestroypause, pauseUncheckedresume, resumeUncheckedstart, startUncheckedstop, stopUncheckedCopyright © 2018. All rights reserved.