Class MethodCommandHandlerDefinition
java.lang.Object
org.axonframework.messaging.commandhandling.annotation.MethodCommandHandlerDefinition
- All Implemented Interfaces:
HandlerEnhancerDefinition
Implementation of a
HandlerEnhancerDefinition used for CommandHandler annotated methods to wrap a
MessageHandlingMember in a CommandHandlingMember instance.
The CommandHandler.commandName() is used to define the CommandHandlingMember.commandName() without
any fall back.
- Since:
- 3.0.0
- Author:
- Allard Buijze
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> MessageHandlingMember<T> wrapHandler(MessageHandlingMember<T> original) Enhance the givenoriginalhandler.
-
Constructor Details
-
MethodCommandHandlerDefinition
public MethodCommandHandlerDefinition()
-
-
Method Details
-
wrapHandler
Description copied from interface:HandlerEnhancerDefinitionEnhance the givenoriginalhandler. Implementations may return the original message handler.- Specified by:
wrapHandlerin interfaceHandlerEnhancerDefinition- 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
-