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 Summary
Modifier and TypeMethodDescription<E,I> CriteriaResolver <I> createEventCriteriaResolver(Class<E> entityType, Class<I> idType, Configuration configuration)
-
Method Details
-
createEventCriteriaResolver
<E,I> CriteriaResolver<I> createEventCriteriaResolver(@Nonnull Class<E> entityType, @Nonnull Class<I> idType, @Nonnull Configuration configuration) Constructs aCriteriaResolverfor the givenentityTypeandidType. Theconfigurationcan be used to retrieve components that help with the resolution of types. For example, aMessageTypeResolver.- 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
CriteriaResolverfor the givenentityTypeandidType.
-