Package org.axonframework.modelling.saga
Class SagaMethodMessageHandlerDefinition
java.lang.Object
org.axonframework.modelling.saga.SagaMethodMessageHandlerDefinition
- All Implemented Interfaces:
HandlerEnhancerDefinition
Utility class that inspects annotation on a Saga instance and returns the relevant configuration for its Event
Handlers.
- Since:
- 0.7
- Author:
- Allard Buijze, Sofia Guy Ang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> MessageHandlingMember<T> wrapHandler(MessageHandlingMember<T> original) Enhance the givenoriginalhandler.
-
Constructor Details
-
SagaMethodMessageHandlerDefinition
public SagaMethodMessageHandlerDefinition()Constructs a defaultSagaMethodMessageHandlerDefinition.
-
-
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
-