Interface EventSourcedEntityModule.EntityIdResolverPhase<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.
- All Superinterfaces:
ModuleBuilder<EventSourcedEntityModule<ID,E>>
- Enclosing interface:
EventSourcedEntityModule<ID,E>
public static interface EventSourcedEntityModule.EntityIdResolverPhase<ID,E>
extends ModuleBuilder<EventSourcedEntityModule<ID,E>>
Phase of the module's building process in which a
ComponentBuilder for an EntityIdResolver should
be provided. This resolver is responsible for resolving the identifier of the event-sourced entity being built.
If no EntityIdResolver is provided by calling the ModuleBuilder.build() method, no command
handling component will be registered, but the entity will still be registered to the StateManager so it
can be loaded in stateful command handlers.-
Method Summary
Modifier and TypeMethodDescriptionentityIdResolver(ComponentBuilder<EntityIdResolver<ID>> entityIdResolver) Registers the givenComponentBuilderof anEntityIdResolveras the resolver for the event-sourced entity being built.Methods inherited from interface org.axonframework.common.configuration.ModuleBuilder
build
-
Method Details
-
entityIdResolver
EventSourcedEntityModule<ID,E> entityIdResolver(@Nonnull ComponentBuilder<EntityIdResolver<ID>> entityIdResolver) Registers the givenComponentBuilderof anEntityIdResolveras the resolver for the event-sourced entity being built. This resolver is responsible for resolving the identifier of the event-sourced entity being built.If no
EntityIdResolveris provided, no command handling component will be registered, but the entity will still be registered to theStateManagerso it can be loaded in stateful command handlers.- Parameters:
entityIdResolver- AComponentBuilderconstructing theEntityIdResolverfor the event-sourced entity.- Returns:
- The finished module.
-