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
public <T> void validate(@Nonnull String associationPropertyName, @Nonnull MessageHandlingMember<T> handler) 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(@Nonnull String associationPropertyName, @Nonnull EventMessage<?> message, @Nonnull MessageHandlingMember<T> handler) Finds the association property value by looking up the association property name in the event message'sMetaData.- Specified by:
resolvein interfaceAssociationResolver
-