AggregateIdGeneratorRegistrar

Registers and provides IdGenerator instances for NamedAggregate types.

This object acts as a registrar and provider for ID generators, allowing for the dynamic initialization of ID generators based on the type of NamedAggregate. It leverages AggregateIdGeneratorFactory implementations to create and register these generators.

Functions

Link copied to clipboard
open override fun containsKey(key: NamedAggregate): Boolean
Link copied to clipboard

Generates a unique ID string for the given key.

Link copied to clipboard
open operator override fun get(key: NamedAggregate): IdGenerator?
Link copied to clipboard
fun getOrInitialize(key: NamedAggregate): IdGenerator

Retrieves or initializes an IdGenerator for the given NamedAggregate.