Package org.axonframework.modelling.saga
Class SagaMethodMessageHandlingMember<T>
java.lang.Object
org.axonframework.messaging.core.annotation.WrappedMessageHandlingMember<T>
org.axonframework.modelling.saga.SagaMethodMessageHandlingMember<T>
- All Implemented Interfaces:
MessageHandlingMember<T>
A data holder containing information of
SagaEventHandler annotated methods.- Since:
- 2.0
- Author:
- Allard Buijze, Sofia Guy Ang
-
Constructor Summary
ConstructorsConstructorDescriptionSagaMethodMessageHandlingMember(MessageHandlingMember<T> delegate, SagaCreationPolicy creationPolicy, String associationKey, String associationPropertyName, AssociationResolver associationResolver) Creates a SagaMethodMessageHandler. -
Method Summary
Modifier and TypeMethodDescriptiongetAssociationValue(EventMessage eventMessage) The AssociationValue to find the saga instance with, ornullif no AssociationValue can be found on the giveneventMessage.Returns the creation policy of the inspected method.Methods inherited from class org.axonframework.messaging.core.annotation.WrappedMessageHandlingMember
attribute, canHandle, canHandleMessageType, canHandleType, handle, payloadType, priority, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.messaging.core.annotation.MessageHandlingMember
declaringClass, signature
-
Constructor Details
-
SagaMethodMessageHandlingMember
public SagaMethodMessageHandlingMember(MessageHandlingMember<T> delegate, SagaCreationPolicy creationPolicy, String associationKey, String associationPropertyName, AssociationResolver associationResolver) Creates a SagaMethodMessageHandler.- Parameters:
delegate- The message handler for the eventcreationPolicy- The creation policy for the handlerMethodassociationKey- The association key configured for this handlerassociationPropertyName- The association property name to look up in the messageassociationResolver- The association resolver configured for this handler
-
-
Method Details
-
getAssociationValue
The AssociationValue to find the saga instance with, ornullif no AssociationValue can be found on the giveneventMessage.- Parameters:
eventMessage- The event message containing the value of the association- Returns:
- the AssociationValue to find the saga instance with, or
nullif none found
-
getCreationPolicy
Returns the creation policy of the inspected method.- Returns:
- the creation policy of the inspected method
-