create

abstract fun create(namedAggregate: NamedAggregate): IdGenerator?

Creates an ID generator for the specified aggregate.

This method allows dynamic selection of ID generation strategies based on the aggregate's name. If the given aggregate does not support ID generation or has no specific strategy, returns null.

Return

the ID generator, which may be null if no strategy is available

Parameters

namedAggregate

the aggregate instance containing name information