public class DefaultInterceptorChain extends Object implements InterceptorChain
Constructor and Description |
---|
DefaultInterceptorChain(CommandMessage<?> command,
UnitOfWork unitOfWork,
CommandHandler<?> handler,
Iterable<? extends CommandHandlerInterceptor> chain)
Initialize the default interceptor chain to dispatch the given
command , through the
chain , to the handler . |
Modifier and Type | Method and Description |
---|---|
Object |
proceed()
Signals the Interceptor Chain to continue processing the incoming (original) command.
|
Object |
proceed(CommandMessage<?> commandProceedWith)
Signals the Interceptor Chain to continue processing the given command.
|
public DefaultInterceptorChain(CommandMessage<?> command, UnitOfWork unitOfWork, CommandHandler<?> handler, Iterable<? extends CommandHandlerInterceptor> chain)
command
, through the
chain
, to the handler
.command
- The command to dispatch through the interceptor chainunitOfWork
- The UnitOfWork the command is executed inhandler
- The handler for the commandchain
- The interceptor composing the chainpublic Object proceed(CommandMessage<?> commandProceedWith) throws Throwable
proceed
in interface InterceptorChain
commandProceedWith
- The command being executedThrowable
- any exceptions thrown by interceptors or the command handlerpublic Object proceed() throws Throwable
InterceptorChain
proceed
in interface InterceptorChain
Throwable
- any exceptions thrown by interceptors or the command handlerCopyright © 2010-2014. All Rights Reserved.