Interface StateBasedEntityModule.EntityIdResolverPhase<ID,E>
- Type Parameters:
ID- The type of identifier used to identify the state-based entity that's being built.E- The type of the state-based entity being built.
- All Superinterfaces:
ModuleBuilder<StateBasedEntityModule<ID,E>>
- Enclosing interface:
StateBasedEntityModule<ID,E>
public static interface StateBasedEntityModule.EntityIdResolverPhase<ID,E>
extends ModuleBuilder<StateBasedEntityModule<ID,E>>
The "entity ID resolver" phase of the state-based entity builder.
Allows for providing an EntityIdResolver to resolve the entity's ID based on the command payload.
Required for any command handlers in the EntityMetamodel. This is
optional, and users can choose to skip this by calling ModuleBuilder.build(). Any command handlers will
not be subscribed to the CommandBus in that case.
-
Method Summary
Modifier and TypeMethodDescriptionentityIdResolver(ComponentBuilder<EntityIdResolver<ID>> entityIdResolver) Registers the givenentityIdResolverto resolver the entity's identifiers from a givenMessagewhen loading.Methods inherited from interface org.axonframework.common.configuration.ModuleBuilder
build
-
Method Details
-
entityIdResolver
StateBasedEntityModule<ID,E> entityIdResolver(@Nonnull ComponentBuilder<EntityIdResolver<ID>> entityIdResolver) Registers the givenentityIdResolverto resolver the entity's identifiers from a givenMessagewhen loading.- Parameters:
entityIdResolver- A factory method constructing anEntityIdResolver.- Returns:
- The
StateBasedEntityModule, signaling the end of this builder.
-