Class MethodCommandHandlerInterceptorDefinition

java.lang.Object
org.axonframework.modelling.command.inspection.MethodCommandHandlerInterceptorDefinition
All Implemented Interfaces:
HandlerEnhancerDefinition

public class MethodCommandHandlerInterceptorDefinition extends Object implements HandlerEnhancerDefinition
Implementation of HandlerEnhancerDefinition used for CommandHandlerInterceptor annotated methods.
Since:
3.3
Author:
Milan Savic
  • Constructor Details

    • MethodCommandHandlerInterceptorDefinition

      public MethodCommandHandlerInterceptorDefinition()
  • Method Details

    • wrapHandler

      @Nonnull public <T> MessageHandlingMember<T> wrapHandler(@Nonnull MessageHandlingMember<T> original)
      Description copied from interface: HandlerEnhancerDefinition
      Enhance the given original handler. Implementations may return the original message handler.
      Specified by:
      wrapHandler in interface HandlerEnhancerDefinition
      Type Parameters:
      T - The type of object that will perform the actual handling of the message
      Parameters:
      original - The original message handler
      Returns:
      The enhanced message handler