Class HandlerTypeResolver

java.lang.Object
org.axonframework.messaging.core.annotation.HandlerTypeResolver

public class HandlerTypeResolver extends Object
Uses reflection to know if a handler handles a certain type of messages.
Since:
4.6.0
Author:
Gerard Klijs
  • Method Details

    • isCommandHandler

      public static boolean isCommandHandler(Class<?> handlerClass)
      Whether this handler has CommandHandler annotated methods.
      Parameters:
      handlerClass - the class of the handler
      Returns:
      whether it contains command handler methods
    • isEventHandler

      public static boolean isEventHandler(Class<?> handlerClass)
      Whether this handler has EventHandler annotated methods.
      Parameters:
      handlerClass - the class of the handler
      Returns:
      whether it contains event handler methods
    • isQueryHandler

      public static boolean isQueryHandler(Class<?> handlerClass)
      Whether this handler has QueryHandler annotated methods.
      Parameters:
      handlerClass - the class of the handler
      Returns:
      whether it contains query handler methods