Class ReplayAwareMessageHandlerWrapper
java.lang.Object
org.axonframework.messaging.eventhandling.replay.annotation.ReplayAwareMessageHandlerWrapper
- All Implemented Interfaces:
HandlerEnhancerDefinition
An implementation of the
HandlerEnhancerDefinition that is used for
AllowReplay annotated message handling methods.- Since:
- 3.2
- Author:
- Allard Buijze
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> MessageHandlingMember<T> wrapHandler(MessageHandlingMember<T> original) Enhance the givenoriginalhandler.
-
Constructor Details
-
ReplayAwareMessageHandlerWrapper
public ReplayAwareMessageHandlerWrapper()
-
-
Method Details
-
wrapHandler
@Nonnull public <T> MessageHandlingMember<T> wrapHandler(@Nonnull MessageHandlingMember<T> original) 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
-