T - The type of entity to which the message handler will delegate the actual handling of the messagepublic class AnnotatedCommandHandlerInterceptor<T> extends Object implements org.axonframework.messaging.MessageHandlerInterceptor<org.axonframework.commandhandling.CommandMessage<?>>
| Constructor and Description |
|---|
AnnotatedCommandHandlerInterceptor(org.axonframework.messaging.annotation.MessageHandlingMember<T> delegate,
T target)
Initializes annotated command handler interceptor with delegate handler and target on which handler is to be
invoked.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
handle(org.axonframework.messaging.unitofwork.UnitOfWork<? extends org.axonframework.commandhandling.CommandMessage<?>> unitOfWork,
org.axonframework.messaging.InterceptorChain interceptorChain) |
public AnnotatedCommandHandlerInterceptor(org.axonframework.messaging.annotation.MessageHandlingMember<T> delegate, T target)
delegate - delegate command handler interceptortarget - on which command handler interceptor is to be invokedpublic Object handle(@Nonnull org.axonframework.messaging.unitofwork.UnitOfWork<? extends org.axonframework.commandhandling.CommandMessage<?>> unitOfWork, @Nonnull org.axonframework.messaging.InterceptorChain interceptorChain) throws Exception
handle in interface org.axonframework.messaging.MessageHandlerInterceptor<org.axonframework.commandhandling.CommandMessage<?>>ExceptionCopyright © 2010–2022. All rights reserved.