Interface EventTargetMatcherDefinition

All Known Implementing Classes:
RoutingKeyEventTargetMatcherDefinition

public interface EventTargetMatcherDefinition
Defines how a EventTargetMatcher should be constructed for an EntityMember-annotated member of an AnnotatedEntityMetamodel.
Since:
5.0.0
Author:
Mitchell Herrijgers
See Also:
  • Method Details

    • createChildEntityMatcher

      @Nonnull <E> EventTargetMatcher<E> createChildEntityMatcher(@Nonnull AnnotatedEntityMetamodel<E> entity, @Nonnull Member member)
      Creates a EventTargetMatcher for the given entity and member.
      Type Parameters:
      E - The type of the child entity.
      Parameters:
      entity - The AnnotatedEntityMetamodel representing the child entity.
      member - The member that represents the child entity in the parent entity metamodel. This member is typically a field or a method that returns the child entity, annotated with EntityMember.
      Returns:
      An EventTargetMatcher that can be used to match child entities against messages.