Class AnnotatedMessageHandlingMemberDefinition

java.lang.Object
org.axonframework.messaging.core.annotation.AnnotatedMessageHandlingMemberDefinition
All Implemented Interfaces:
HandlerDefinition

public class AnnotatedMessageHandlingMemberDefinition extends Object implements HandlerDefinition
The default HandlerDefinition implementation in Axon. It implements the rules of annotated handlers used in all the different types of handlers in Axon.

For this implementation to recognize a handler method, it should be (meta)annotated with MessageHandler. It is recommended to meta-annotated members, and preconfigure the expected messageType. For example, and event handler should define @MessageHandler(messageType = EventMessage.class), indicating that this handler should only be invoked for EventMessages.

Use HandlerEnhancerDefinition to add extra behavior or information on top of handlers created by this definition.

Since:
3.0.0
Author:
Allard Buijze
See Also: