Package org.axonframework.modelling.saga
Class EndSagaMessageHandlerDefinition
java.lang.Object
org.axonframework.modelling.saga.EndSagaMessageHandlerDefinition
- All Implemented Interfaces:
HandlerEnhancerDefinition
A
HandlerEnhancerDefinition inspecting the existence of the EndSaga annotation on MessageHandlingMembers. If present, the given MessageHandlingMember will be wrapped in a EndSagaMessageHandlerDefinition.EndSageMessageHandlingMember.- Since:
- 4.5
- Author:
- Steven van Beelen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAWrappedMessageHandlingMemberimplementation dedicated towardsMessageHandlingMembers annotated withEndSaga. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> MessageHandlingMember<T> wrapHandler(MessageHandlingMember<T> original) Enhance the givenoriginalhandler.
-
Constructor Details
-
EndSagaMessageHandlerDefinition
public EndSagaMessageHandlerDefinition()
-
-
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
-