Class SagaMethodMessageHandlingMember<T>

java.lang.Object
org.axonframework.messaging.core.annotation.WrappedMessageHandlingMember<T>
org.axonframework.modelling.saga.SagaMethodMessageHandlingMember<T>
All Implemented Interfaces:
MessageHandlingMember<T>

public class SagaMethodMessageHandlingMember<T> extends WrappedMessageHandlingMember<T>
A data holder containing information of SagaEventHandler annotated methods.
Since:
2.0
Author:
Allard Buijze, Sofia Guy Ang
  • 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 event
      creationPolicy - The creation policy for the handlerMethod
      associationKey - The association key configured for this handler
      associationPropertyName - The association property name to look up in the message
      associationResolver - The association resolver configured for this handler
  • Method Details

    • getAssociationValue

      public AssociationValue getAssociationValue(EventMessage eventMessage)
      The AssociationValue to find the saga instance with, or null if no AssociationValue can be found on the given eventMessage.
      Parameters:
      eventMessage - The event message containing the value of the association
      Returns:
      the AssociationValue to find the saga instance with, or null if none found
    • getCreationPolicy

      public SagaCreationPolicy getCreationPolicy()
      Returns the creation policy of the inspected method.
      Returns:
      the creation policy of the inspected method