Interface StateBasedEntityModule.PersisterPhase<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.
- Enclosing interface:
StateBasedEntityModule<ID,E>
public static interface StateBasedEntityModule.PersisterPhase<ID,E>
The "persister" phase of the state-based entity builder.
Enforce providing the persister(ComponentBuilder) for the state-based entity that's being built.
-
Method Summary
Modifier and TypeMethodDescriptionpersister(ComponentBuilder<SimpleRepositoryEntityPersister<ID, E>> persister) Registers the givenpersisteras a factory method for the state-based entity being built.
-
Method Details
-
persister
StateBasedEntityModule.MessagingMetamodelPhase<ID,E> persister(@Nonnull ComponentBuilder<SimpleRepositoryEntityPersister<ID, E>> persister) Registers the givenpersisteras a factory method for the state-based entity being built.- Parameters:
persister- A factory method constructing aSimpleRepositoryEntityPersister.- Returns:
- The parent
StateBasedEntityModule, signaling the end of configuring a state-based entity.
-