CTX - The context passed to each contained assembler upon
initialization.IE - An initialize exception in case initializing of an assembler
failed.WP - The work piece which is being passed to the contained assemblers
one after the other and which is processed by the assemblers.WPE - A work piece exception in case processing of the work piece
failed by one of the contained assemblers.public class CompositeSequentialAssemblerImpl<WP> extends Object implements Assembler<WP>, CompositeComponent
doAssemble(Object) method it returns
true), then this compound sequential assembler returns true.
CompositeComponent.ExtendedCompositeComponent<CTX,CON>LifeCycleComponent.LifeCycleAutomaton, LifeCycleComponent.UncheckedLifeCycleComponentInitializable.InitializeAutomaton, Initializable.InitializeBuilder<B extends Initializable.InitializeBuilder<B>>, Initializable.UncheckedInitializableStartable.StartAutomaton, Startable.StartBuilder<B extends Startable.StartBuilder<B>>, Startable.UncheckedStartablePausable.PauseAutomaton, Pausable.PauseBuilder<B extends Pausable.PauseBuilder<B>>, Pausable.UncheckedPausableResumable.ResumeAutomaton, Resumable.ResumeBuilder<B extends Resumable.ResumeBuilder<B>>, Resumable.UncheckedResumableStoppable.StopAutomaton, Stoppable.StopBuilder<B extends Stoppable.StopBuilder<B>>, Stoppable.UncheckedStoppableDestroyable.DestroyAutomatonDeviceComponent.DeviceAutomatonOpenable.OpenAutomatonClosable.CloseAutomatonDecomposeable.DecomposeAutomaton| Constructor and Description |
|---|
CompositeSequentialAssemblerImpl(Assembler<WP>... aAssemblers)
Constructs the sequential assembler which contains a list of assemblers
being invoked in the order in which them were added upon calling the
method
doAssemble(Object). |
CompositeSequentialAssemblerImpl(boolean isContinueOnFinished,
boolean isContinueOnError,
Assembler<WP>... aAssemblers)
Constructs the sequential assembler which contains a list of assemblers
being invoked in the order in which them were added upon calling the
method
doAssemble(Object). |
CompositeSequentialAssemblerImpl(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Assembler<WP>... aAssemblers)
Constructs the sequential assembler which contains a list of assemblers
being invoked in the order in which them were added upon calling the
method
doAssemble(Object). |
CompositeSequentialAssemblerImpl(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
boolean isContinueOnFinished,
boolean isContinueOnError,
Assembler<WP>... aAssemblers)
Constructs the sequential assembler which contains a list of assemblers
being invoked in the order in which them were added upon calling the
method
doAssemble(Object). |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
decompose() |
void |
destroy() |
void |
dispose() |
boolean |
doAssemble(WP aWorkPiece)
This method is invoked with a work as argument.
|
void |
flush() |
void |
initialize() |
void |
open() |
void |
pause() |
void |
reset() |
void |
resume() |
void |
start() |
void |
stop() |
@SafeVarargs public CompositeSequentialAssemblerImpl(Assembler<WP>... aAssemblers)
doAssemble(Object).aAssemblers - The assemblers to be invoked by the compound
sequential assembler.@SafeVarargs public CompositeSequentialAssemblerImpl(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Assembler<WP>... aAssemblers)
doAssemble(Object).aComponentExecutionStrategy - The strategy on how to invoke the
state change requests (as of the CompositeComponent)
defined methods) on the herein contained Component
instances. CAUTION: The strategy does not affect on how the
doAssemble(Object) methods of the herein contained
instances are invoked.aAssemblers - The assemblers to be invoked by the compound
sequential assembler.@SafeVarargs public CompositeSequentialAssemblerImpl(boolean isContinueOnFinished, boolean isContinueOnError, Assembler<WP>... aAssemblers)
doAssemble(Object).
The sequential assembler can be configured to continue the processing
sequence even in case a WorkPieceException was thrown or even if
a containing assembler signaled "finished" after processing the work
piece (by returning true" after invocation of the method
doAssemble(Object) ).isContinueOnFinished - True in case all subsequent assemblers are to
be processed even if an assembler signaled "finished" after
processing the work piece.isContinueOnError - True in case all subsequent assemblers are to be
processed even if an assembler signaled an error after processing
the work piece (by throwing an WorkPieceException).aAssemblers - The assemblers to be invoked by the compound
sequential assembler.@SafeVarargs public CompositeSequentialAssemblerImpl(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, boolean isContinueOnFinished, boolean isContinueOnError, Assembler<WP>... aAssemblers)
doAssemble(Object).
The sequential assembler can be configured to continue the processing
sequence even in case a WorkPieceException was thrown or even if
a containing assembler signaled "finished" after processing the work
piece (by returning true" after invocation of the method
doAssemble(Object) ).aComponentExecutionStrategy - The strategy on how to invoke the
state change requests (as of the CompositeComponent)
defined methods) on the herein contained Component
instances. CAUTION: The strategy does not affect on how the
doAssemble(Object) methods of the herein contained
instances are invoked.isContinueOnFinished - True in case all subsequent assemblers are to
be processed even if an assembler signaled "finished" after
processing the work piece.isContinueOnError - True in case all subsequent assemblers are to be
processed even if an assembler signaled an error after processing
the work piece (by throwing an WorkPieceException).aAssemblers - The assemblers to be invoked by the compound
sequential assembler.public boolean doAssemble(WP aWorkPiece) throws WorkPieceException
AssemblerdoAssemble in interface Assembler<WP>aWorkPiece - The work piece which is to be processed by the
assembler.WorkPieceException - In case the assembler was not able to work
with the provided work piece, then an according work piece
exception is thrown.public void initialize()
throws InitializeException
initialize in interface InitializableInitializeExceptionpublic void start()
throws StartException
start in interface StartableStartExceptionpublic void pause()
throws PauseException
pause in interface PausablePauseExceptionpublic void resume()
throws ResumeException
resume in interface ResumableResumeExceptionpublic void stop()
throws StopException
stop in interface StoppableStopExceptionpublic void decompose()
decompose in interface Decomposeablepublic void flush()
throws IOException
flush in interface FlushableIOExceptionpublic void destroy()
destroy in interface Destroyablepublic void open()
throws OpenException
open in interface OpenableOpenExceptionpublic void dispose()
dispose in interface org.refcodes.mixin.DisposableCopyright © 2015. All rights reserved.