Class MessageHandlerInterceptorDefinition

java.lang.Object
org.axonframework.messaging.core.interception.annotation.MessageHandlerInterceptorDefinition
All Implemented Interfaces:
HandlerEnhancerDefinition

public class MessageHandlerInterceptorDefinition extends Object implements HandlerEnhancerDefinition
HandlerEnhancerDefinition that marks methods (meta-)annotated with MessageHandlerInterceptor as interceptors. These methods need to be given special treatment when invoking handlers. Matching interceptors need to be invoked first, allowing them to proceed the invocation chain.

This definition also recognizes interceptors only acting on the response. These must be meta-annotated with ResultHandler.

Since:
4.4.0
Author:
Allard Buijze
  • Constructor Details

    • MessageHandlerInterceptorDefinition

      public MessageHandlerInterceptorDefinition()
  • Method Details