AggregateIdGeneratorFactory

Functional interface for factories that create ID generators for aggregates.

This interface provides a standard way to generate IdGenerator instances based on NamedAggregate information. In Domain-Driven Design (DDD), this allows flexible generation of globally unique identifiers for different aggregates, ensuring that ID generation strategies can be centralized and configured.

See also

represents a named aggregate root

IdGenerator

interface for generating aggregate identifiers

Inheritors

Functions

Link copied to clipboard
abstract fun create(namedAggregate: NamedAggregate): IdGenerator?

Creates an ID generator for the specified aggregate.