Class MetaDataAssociationResolver

java.lang.Object
org.axonframework.modelling.saga.MetaDataAssociationResolver
All Implemented Interfaces:
AssociationResolver

public class MetaDataAssociationResolver extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Object
    resolve(String associationPropertyName, org.axonframework.eventhandling.EventMessage<?> message, org.axonframework.messaging.annotation.MessageHandlingMember<T> handler)
    Finds the association property value by looking up the association property name in the event message's MetaData.
    <T> void
    validate(String associationPropertyName, org.axonframework.messaging.annotation.MessageHandlingMember<T> handler)
    Does nothing because we can only check for existence of property in the metadata during event handling.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MetaDataAssociationResolver

      public MetaDataAssociationResolver()
  • Method Details

    • validate

      public <T> void validate(@Nonnull String associationPropertyName, @Nonnull org.axonframework.messaging.annotation.MessageHandlingMember<T> handler)
      Does nothing because we can only check for existence of property in the metadata during event handling.
      Specified by:
      validate in interface AssociationResolver
    • resolve

      public <T> Object resolve(@Nonnull String associationPropertyName, @Nonnull org.axonframework.eventhandling.EventMessage<?> message, @Nonnull org.axonframework.messaging.annotation.MessageHandlingMember<T> handler)
      Finds the association property value by looking up the association property name in the event message's MetaData.
      Specified by:
      resolve in interface AssociationResolver