public class SagaMethodMessageHandlingMember<T>
extends org.axonframework.messaging.annotation.WrappedMessageHandlingMember<T>
SagaEventHandler annotated methods.| Constructor and Description |
|---|
SagaMethodMessageHandlingMember(org.axonframework.messaging.annotation.MessageHandlingMember<T> delegate,
SagaCreationPolicy creationPolicy,
String associationKey,
String associationPropertyName,
AssociationResolver associationResolver)
Creates a SagaMethodMessageHandler.
|
| Modifier and Type | Method and Description |
|---|---|
AssociationValue |
getAssociationValue(org.axonframework.eventhandling.EventMessage<?> eventMessage)
The AssociationValue to find the saga instance with, or
null if no AssociationValue can be found on the
given eventMessage. |
SagaCreationPolicy |
getCreationPolicy()
Returns the creation policy of the inspected method.
|
Object |
handle(org.axonframework.messaging.Message<?> message,
T target) |
annotationAttributes, attribute, canHandle, canHandleMessageType, canHandleType, hasAnnotation, payloadType, priority, unwrappublic SagaMethodMessageHandlingMember(org.axonframework.messaging.annotation.MessageHandlingMember<T> delegate, SagaCreationPolicy creationPolicy, String associationKey, String associationPropertyName, AssociationResolver associationResolver)
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 handlerpublic AssociationValue getAssociationValue(org.axonframework.eventhandling.EventMessage<?> eventMessage)
null if no AssociationValue can be found on the
given eventMessage.eventMessage - The event message containing the value of the associationnull if none foundpublic Object handle(@Nonnull org.axonframework.messaging.Message<?> message, T target) throws Exception
public SagaCreationPolicy getCreationPolicy()
Copyright © 2010–2022. All rights reserved.