Class MethodQueryHandlerDefinition

java.lang.Object
org.axonframework.messaging.queryhandling.annotation.MethodQueryHandlerDefinition
All Implemented Interfaces:
HandlerEnhancerDefinition

public class MethodQueryHandlerDefinition extends Object implements HandlerEnhancerDefinition
Implementation of a HandlerEnhancerDefinition used for QueryHandler annotated methods to wrap a MessageHandlingMember in a QueryHandlingMember instance.

The QueryHandler.queryName() is used to define the QueryHandlingMember.queryName() without any fall back.

Since:
3.1.0
Author:
Allard Buijze
  • Constructor Details

    • MethodQueryHandlerDefinition

      public MethodQueryHandlerDefinition()
  • 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