Interface StateBasedEntityModule.MessagingMetamodelPhase<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.MessagingMetamodelPhase<ID,E>
extends ModuleBuilder<StateBasedEntityModule<ID,E>>
The "messaging metamodel" phase of the state-based entity builder.
Users can provide a messaging metamodel so the
entity can handle messages, such as commands and events, based on the entity's metamodel. This is optional, and
users can choose to skip this by calling ModuleBuilder.build().
-
Method Summary
Modifier and TypeMethodDescriptionmessagingModel(EntityMetamodelConfigurationBuilder<E> metamodelFactory) Registers the givenmetamodelFactoryto build the entity's metamodel.Methods inherited from interface org.axonframework.common.configuration.ModuleBuilder
build
-
Method Details
-
messagingModel
StateBasedEntityModule.EntityIdResolverPhase<ID,E> messagingModel(@Nonnull EntityMetamodelConfigurationBuilder<E> metamodelFactory) Registers the givenmetamodelFactoryto build the entity's metamodel.This method allows for configuring the entity's metamodel, which is used to handle messages such as commands and events. This is optional, and users can choose to skip this by calling
ModuleBuilder.build().- Parameters:
metamodelFactory- A factory method constructing anEntityMetamodelConfigurationBuilder.- Returns:
- The next phase of this builder, allowing for configuring the entity's ID resolver.
-