Class HandlerTypeResolver
java.lang.Object
org.axonframework.messaging.core.annotation.HandlerTypeResolver
Uses reflection to know if a handler handles a certain type of messages.
- Since:
- 4.6.0
- Author:
- Gerard Klijs
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCommandHandler(Class<?> handlerClass) Whether this handler hasCommandHandlerannotated methods.static booleanisEventHandler(Class<?> handlerClass) Whether this handler hasEventHandlerannotated methods.static booleanisQueryHandler(Class<?> handlerClass) Whether this handler hasQueryHandlerannotated methods.
-
Method Details
-
isCommandHandler
Whether this handler hasCommandHandlerannotated methods.- Parameters:
handlerClass- the class of the handler- Returns:
- whether it contains command handler methods
-
isEventHandler
Whether this handler hasEventHandlerannotated methods.- Parameters:
handlerClass- the class of the handler- Returns:
- whether it contains event handler methods
-
isQueryHandler
Whether this handler hasQueryHandlerannotated methods.- Parameters:
handlerClass- the class of the handler- Returns:
- whether it contains query handler methods
-