WP - The work piece which is being passed to the contained
interceptors one after the other and which is processed by the
interceptors.Flushable, org.refcodes.component.Closable, org.refcodes.component.CompositeComponent, org.refcodes.component.Decomposeable, org.refcodes.component.Destroyable, org.refcodes.component.Flushable, org.refcodes.component.Initializable, org.refcodes.component.LifeCycleComponent, org.refcodes.component.LinkComponent, org.refcodes.component.Openable, org.refcodes.component.Pausable, org.refcodes.component.Resetable, org.refcodes.component.Resumable, org.refcodes.component.Startable, org.refcodes.component.Stoppable, Interceptor<WP>, org.refcodes.mixin.Disposablepublic class CompositeSequentialInterceptorImpl<WP> extends Object implements Interceptor<WP>, org.refcodes.component.CompositeComponent
doIntercept(Object) method it
returns true), then this compound sequential interceptor returns true.
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>org.refcodes.component.CompositeComponent.ExtendedCompositeComponent<CTX extends Object,CON extends Object>org.refcodes.component.Decomposeable.DecomposeAutomatonorg.refcodes.component.Destroyable.DestroyAutomatonorg.refcodes.mixin.Disposable.Disposedableorg.refcodes.component.Flushable.FlushBuilder<B extends org.refcodes.component.Flushable.FlushBuilder<B>>org.refcodes.component.Initializable.InitializeAutomaton, org.refcodes.component.Initializable.InitializeBuilder<B extends org.refcodes.component.Initializable.InitializeBuilder<B>>, org.refcodes.component.Initializable.UncheckedInitializableorg.refcodes.component.LifeCycleComponent.LifeCycleAutomaton, org.refcodes.component.LifeCycleComponent.UncheckedLifeCycleComponentorg.refcodes.component.LinkComponent.LinkAutomaton, org.refcodes.component.LinkComponent.LinkComponentBuilder<B extends org.refcodes.component.LinkComponent.LinkComponentBuilder<B>>org.refcodes.component.Openable.OpenAutomaton, org.refcodes.component.Openable.OpenBuilder<B extends org.refcodes.component.Openable.OpenBuilder<B>>org.refcodes.component.Pausable.PauseAutomaton, org.refcodes.component.Pausable.PauseBuilder<B extends org.refcodes.component.Pausable.PauseBuilder<B>>, org.refcodes.component.Pausable.UncheckedPausableorg.refcodes.component.Resumable.ResumeAutomaton, org.refcodes.component.Resumable.ResumeBuilder<B extends org.refcodes.component.Resumable.ResumeBuilder<B>>, org.refcodes.component.Resumable.UncheckedResumable| Constructor | Description |
|---|---|
CompositeSequentialInterceptorImpl(boolean isContinueOnFinished,
boolean isContinueOnError,
Interceptor<WP>... aInterceptors) |
Constructs the sequential interceptor which contains a list of
interceptors being invoked in the order in which them were added upon
calling the method
doIntercept(Object). |
CompositeSequentialInterceptorImpl(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
boolean isContinueOnFinished,
boolean isContinueOnError,
Interceptor<WP>... aInterceptors) |
Constructs the sequential interceptor which contains a list of
interceptors being invoked in the order in which them were added upon
calling the method
doIntercept(Object). |
CompositeSequentialInterceptorImpl(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Interceptor<WP>... aInterceptors) |
Constructs the sequential interceptor which contains a list of
interceptors being invoked in the order in which them were added upon
calling the method
doIntercept(Object). |
CompositeSequentialInterceptorImpl(Interceptor<WP>... aInterceptors) |
Constructs the sequential interceptor which contains a list of
interceptors being invoked in the order in which them were added upon
calling the method
doIntercept(Object). |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
decompose() |
|
void |
destroy() |
|
void |
dispose() |
|
boolean |
doIntercept(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() |
closeIn, closeQuietly, closeUnchecked@SafeVarargs public CompositeSequentialInterceptorImpl(Interceptor<WP>... aInterceptors)
doIntercept(Object).aInterceptors - The interceptors to be invoked by the compound
sequential interceptor.@SafeVarargs public CompositeSequentialInterceptorImpl(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Interceptor<WP>... aInterceptors)
doIntercept(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
doIntercept(Object) methods of the herein contained
instances are invoked.aInterceptors - The interceptors to be invoked by the compound
sequential interceptor.@SafeVarargs public CompositeSequentialInterceptorImpl(boolean isContinueOnFinished, boolean isContinueOnError, Interceptor<WP>... aInterceptors)
doIntercept(Object).
The sequential interceptor can be configured to continue the processing
sequence even in case a WorkPieceException was thrown or even if
a containing interceptor signaled "finished" after processing the work
piece (by returning true" after invocation of the method
doIntercept(Object) ).isContinueOnFinished - True in case all subsequent interceptors are
to be processed even if an interceptor signaled "finished" after
processing the work piece.isContinueOnError - True in case all subsequent interceptors are to
be processed even if an interceptor signaled an error after
processing the work piece (by throwing an
WorkPieceException).aInterceptors - The interceptors to be invoked by the compound
sequential interceptor.@SafeVarargs public CompositeSequentialInterceptorImpl(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, boolean isContinueOnFinished, boolean isContinueOnError, Interceptor<WP>... aInterceptors)
doIntercept(Object).
The sequential interceptor can be configured to continue the processing
sequence even in case a WorkPieceException was thrown or even if
a containing interceptor signaled "finished" after processing the work
piece (by returning true" after invocation of the method
doIntercept(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
doIntercept(Object) methods of the herein contained
instances are invoked.isContinueOnFinished - True in case all subsequent interceptors are
to be processed even if an interceptor signaled "finished" after
processing the work piece.isContinueOnError - True in case all subsequent interceptors are to
be processed even if an interceptor signaled an error after
processing the work piece (by throwing an
WorkPieceException).aInterceptors - The interceptors to be invoked by the compound
sequential interceptor.public boolean doIntercept(WP aWorkPiece) throws WorkPieceException
doIntercept in interface Interceptor<WP>aWorkPiece - The work piece which is to be processed by the
interceptor.WorkPieceException - In case the interceptor was not able to
work with the provided work piece, then an according work
piece exception is thrown.public void initialize()
throws org.refcodes.component.InitializeException
initialize in interface org.refcodes.component.Initializableorg.refcodes.component.InitializeExceptionpublic void start()
throws org.refcodes.component.StartException
start in interface org.refcodes.component.Startableorg.refcodes.component.StartExceptionpublic void pause()
throws org.refcodes.component.PauseException
pause in interface org.refcodes.component.Pausableorg.refcodes.component.PauseExceptionpublic void resume()
throws org.refcodes.component.ResumeException
resume in interface org.refcodes.component.Resumableorg.refcodes.component.ResumeExceptionpublic void stop()
throws org.refcodes.component.StopException
stop in interface org.refcodes.component.Stoppableorg.refcodes.component.StopExceptionpublic void decompose()
decompose in interface org.refcodes.component.Decomposeablepublic void flush()
throws org.refcodes.component.OpenException
public void destroy()
destroy in interface org.refcodes.component.Destroyablepublic void reset()
reset in interface org.refcodes.component.Resetablepublic void open()
throws org.refcodes.component.OpenException
open in interface org.refcodes.component.Openableorg.refcodes.component.OpenExceptionpublic void close()
close in interface org.refcodes.component.Closablepublic void dispose()
dispose in interface org.refcodes.mixin.DisposableCopyright © 2018. All rights reserved.