Interface EventSourcedEntityModule.CriteriaResolverPhase<ID,E>
- Type Parameters:
ID- The type of identifier used to identify the event-sourced entity.E- The type of the event-sourced entity being built.
- Enclosing interface:
EventSourcedEntityModule<ID,E>
public static interface EventSourcedEntityModule.CriteriaResolverPhase<ID,E>
Phase of the module's building process in which a
ComponentBuilder for a CriteriaResolver should
be provided. A CriteriaResolver receives the entity's identifier of type I and expects the
EventCriteria as a result. The resulting EventCriteria is used to
source the
entity from the EventStore.-
Method Summary
Modifier and TypeMethodDescriptioncriteriaResolver(ComponentBuilder<CriteriaResolver<ID>> criteriaResolver) Registers the givenComponentBuilderof aCriteriaResolveras the criteria resolver for the event-sourced entity being built.
-
Method Details
-
criteriaResolver
EventSourcedEntityModule.EntityIdResolverPhase<ID,E> criteriaResolver(@Nonnull ComponentBuilder<CriteriaResolver<ID>> criteriaResolver) Registers the givenComponentBuilderof aCriteriaResolveras the criteria resolver for the event-sourced entity being built.A
CriteriaResolverreceives the entity's identifier of typeIand expects theEventCriteriaas a result. The resultingEventCriteriais used tosourcethe entity from theEventStore.- Parameters:
criteriaResolver- AComponentBuilderconstructing theCriteriaResolverfor the event-sourced entity.- Returns:
- The
EventSourcedEntityModule.EntityIdResolverPhasephase of this builder, for a fluent API.
-