C
- The type of the Component
supported by the
CompositeComponentImpl.ExtendedCompositeComponentImpl
.CTX
- the generic typeCON
- the generic typepublic static class CompositeComponentImpl.ExtendedCompositeComponentImpl<C extends Component,CTX,CON> extends CompositeComponentImpl<C> implements CompositeComponent.ExtendedCompositeComponent<CTX,CON>
CompositeComponentImpl.ExtendedCompositeComponentImpl
is an implementation of the
ExtendedCompositeComponent
. To make sure that the state change
requests you require are supported by the managed Component
instances, specify the according type C
as generic type
argument.CompositeComponentImpl.ExtendedCompositeComponentImpl<C extends Component,CTX,CON>
CompositeComponent.ExtendedCompositeComponent<CTX,CON>
LifeCycleComponent.LifeCycleAutomaton, LifeCycleComponent.UncheckedLifeCycleComponent
Initializable.InitializeAutomaton, Initializable.InitializeBuilder<B extends Initializable.InitializeBuilder<B>>, Initializable.UncheckedInitializable
Startable.StartAutomaton, Startable.StartBuilder<B extends Startable.StartBuilder<B>>, Startable.UncheckedStartable
Pausable.PauseAutomaton, Pausable.PauseBuilder<B extends Pausable.PauseBuilder<B>>, Pausable.UncheckedPausable
Resumable.ResumeAutomaton, Resumable.ResumeBuilder<B extends Resumable.ResumeBuilder<B>>, Resumable.UncheckedResumable
Stoppable.StopAutomaton, Stoppable.StopBuilder<B extends Stoppable.StopBuilder<B>>, Stoppable.UncheckedStoppable
Destroyable.DestroyAutomaton
LinkComponent.LinkAutomaton, LinkComponent.LinkComponentBuilder<B extends LinkComponent.LinkComponentBuilder<B>>
Openable.OpenAutomaton, Openable.OpenBuilder<B extends Openable.OpenBuilder<B>>
Closable.CloseAutomaton, Closable.CloseBuilder<B extends Closable.CloseBuilder<B>>
Flushable.FlushBuilder<B extends Flushable.FlushBuilder<B>>
Decomposeable.DecomposeAutomaton
org.refcodes.mixin.Disposable.Disposedable
ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton<CTX>
Configurable.ConfigureAutomaton<CTX>, Configurable.ConfigureBuilder<CTX,B extends Configurable.ConfigureBuilder<CTX,B>>
ConnectionComponent.ConnectionAutomaton<CON>, ConnectionComponent.ConnectionComponentBuilder<CON,B extends ConnectionComponent.ConnectionComponentBuilder<CON,B>>
ConnectionOpenable.ConnectionOpenAutomaton<CON>, ConnectionOpenable.ConnectionOpenBuilder<CON,B extends ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
Constructor and Description |
---|
ExtendedCompositeComponentImpl(C... aComponents)
Instantiates a new extended composite component impl.
|
ExtendedCompositeComponentImpl(Collection<C> aComponents)
Instantiates a new extended composite component impl.
|
ExtendedCompositeComponentImpl(org.refcodes.controlflow.ExecutionStrategy aStrategy,
C... aComponents)
Instantiates a new extended composite component impl.
|
ExtendedCompositeComponentImpl(org.refcodes.controlflow.ExecutionStrategy aStrategy,
Collection<C> aComponents)
Instantiates a new extended composite component impl.
|
Modifier and Type | Method and Description |
---|---|
void |
initialize(CTX aContext)
Initializes and configures the component.
|
void |
open(CON aConnection)
Opens the component with the given connection.
|
close, decompose, destroy, dispose, flush, getComponents, getExecutionStrategy, initialize, open, pause, reset, resume, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, initializeUnchecked
start, startUnchecked
pause, pauseUnchecked
resume, resumeUnchecked
stop, stopUnchecked
destroy
open, openUnchecked
close, closeIn, closeQuietly, closeUnchecked
flush, flushUnchecked, isFlushable
decompose
initializeUnchecked
openUnchecked
@SafeVarargs public ExtendedCompositeComponentImpl(C... aComponents)
aComponents
- the componentspublic ExtendedCompositeComponentImpl(Collection<C> aComponents)
aComponents
- the components@SafeVarargs public ExtendedCompositeComponentImpl(org.refcodes.controlflow.ExecutionStrategy aStrategy, C... aComponents)
aStrategy
- the strategyaComponents
- the componentspublic ExtendedCompositeComponentImpl(org.refcodes.controlflow.ExecutionStrategy aStrategy, Collection<C> aComponents)
aStrategy
- the strategyaComponents
- the componentspublic void initialize(CTX aContext) throws ConfigureException
initialize
in interface Configurable<CTX>
aContext
- The context to be passed to the implementing instance.ConfigureException
public void open(CON aConnection) throws OpenException
open
in interface ConnectionOpenable<CON>
aConnection
- The connection used for opening the connection.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2018. All rights reserved.