Interface CriteriaResolverDefinition

All Known Implementing Classes:
AnnotationBasedEventCriteriaResolverDefinition

public interface CriteriaResolverDefinition
Defines how a CriteriaResolver should be constructed for an EventSourcedEntity annotated class. The definition receives the entityType and idType to create the resolver for. In addition, it receives the Configuration to resolve any component dependencies that are necessary for creating the resolver.
Since:
5.0.0
Author:
Mitchell Herrijgers
  • Method Details

    • createEventCriteriaResolver

      <E, I> CriteriaResolver<I> createEventCriteriaResolver(@Nonnull Class<E> entityType, @Nonnull Class<I> idType, @Nonnull Configuration configuration)
      Constructs a CriteriaResolver for the given entityType and idType. The configuration can be used to retrieve components that help with the resolution of types. For example, a MessageTypeResolver.
      Type Parameters:
      E - The type of the entity to create.
      I - The type of the identifier of the entity to create.
      Parameters:
      entityType - The entity type the resolver is for.
      idType - The identifier type the resolver is for.
      configuration - The configuration to use for creating the resolver.
      Returns:
      A CriteriaResolver for the given entityType and idType.