Package org.axonframework.modelling.saga
Class SagaMethodMessageHandlingMember<T>
java.lang.Object
org.axonframework.messaging.annotation.WrappedMessageHandlingMember<T>
org.axonframework.modelling.saga.SagaMethodMessageHandlingMember<T>
- All Implemented Interfaces:
org.axonframework.messaging.annotation.MessageHandlingMember<T>
public class SagaMethodMessageHandlingMember<T>
extends org.axonframework.messaging.annotation.WrappedMessageHandlingMember<T>
A data holder containing information of
SagaEventHandler annotated methods.- Since:
- 2.0
- Author:
- Allard Buijze, Sofia Guy Ang
-
Constructor Summary
ConstructorsConstructorDescriptionSagaMethodMessageHandlingMember(org.axonframework.messaging.annotation.MessageHandlingMember<T> delegate, SagaCreationPolicy creationPolicy, String associationKey, String associationPropertyName, AssociationResolver associationResolver) Creates a SagaMethodMessageHandler. -
Method Summary
Modifier and TypeMethodDescriptiongetAssociationValue(org.axonframework.eventhandling.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.annotation.WrappedMessageHandlingMember
annotationAttributes, attribute, canHandle, canHandleMessageType, canHandleType, hasAnnotation, 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.annotation.MessageHandlingMember
declaringClass, signature
-
Constructor Details
-
SagaMethodMessageHandlingMember
public SagaMethodMessageHandlingMember(org.axonframework.messaging.annotation.MessageHandlingMember<T> delegate, SagaCreationPolicy creationPolicy, String associationKey, String associationPropertyName, AssociationResolver associationResolver) Creates a SagaMethodMessageHandler.- Parameters:
creationPolicy- The creation policy for the handlerMethoddelegate- The message handler for the eventassociationKey- 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
public AssociationValue getAssociationValue(org.axonframework.eventhandling.EventMessage<?> eventMessage) 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
-
handle
-
getCreationPolicy
Returns the creation policy of the inspected method.- Returns:
- the creation policy of the inspected method
-