Package org.axonframework.modelling.saga
Class MetadataAssociationResolver
java.lang.Object
org.axonframework.modelling.saga.MetadataAssociationResolver
- All Implemented Interfaces:
AssociationResolver
Used to derive the value of an association property by looking it up the event message's
Metadata.- Author:
- Sofia Guy Ang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Objectresolve(String associationPropertyName, EventMessage message, MessageHandlingMember<T> handler) Finds the association property value by looking up the association property name in the event message'sMetadata.<T> voidvalidate(String associationPropertyName, MessageHandlingMember<T> handler) Does nothing because we can only check for existence of property in the metadata during event handling.
-
Constructor Details
-
MetadataAssociationResolver
public MetadataAssociationResolver()
-
-
Method Details
-
validate
Does nothing because we can only check for existence of property in the metadata during event handling.- Specified by:
validatein interfaceAssociationResolver
-
resolve
public <T> Object resolve(String associationPropertyName, EventMessage message, MessageHandlingMember<T> handler) Finds the association property value by looking up the association property name in the event message'sMetadata.- Specified by:
resolvein interfaceAssociationResolver
-