Class AnnotatedCommandHandlerInterceptor<T>

java.lang.Object
org.axonframework.modelling.command.inspection.AnnotatedCommandHandlerInterceptor<T>
Type Parameters:
T - The type of entity to which the message handler will delegate the actual handling of the message
All Implemented Interfaces:
org.axonframework.messaging.MessageHandlerInterceptor<org.axonframework.commandhandling.CommandMessage<?>>

public class AnnotatedCommandHandlerInterceptor<T> extends Object implements org.axonframework.messaging.MessageHandlerInterceptor<org.axonframework.commandhandling.CommandMessage<?>>
Annotated command handler interceptor on aggregate. Will invoke the delegate to the real interceptor method.
Since:
3.3
Author:
Milan Savic
  • Constructor Summary

    Constructors
    Constructor
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(org.axonframework.messaging.unitofwork.UnitOfWork<? extends org.axonframework.commandhandling.CommandMessage<?>> unitOfWork, org.axonframework.messaging.InterceptorChain interceptorChain)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AnnotatedCommandHandlerInterceptor

      public 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.
      Parameters:
      delegate - delegate command handler interceptor
      target - on which command handler interceptor is to be invoked
  • Method Details

    • handle

      public Object handle(@Nonnull org.axonframework.messaging.unitofwork.UnitOfWork<? extends org.axonframework.commandhandling.CommandMessage<?>> unitOfWork, @Nonnull org.axonframework.messaging.InterceptorChain interceptorChain) throws Exception
      Specified by:
      handle in interface org.axonframework.messaging.MessageHandlerInterceptor<T>
      Throws:
      Exception