CommandAggregateFactory
interface CommandAggregateFactory
Factory interface for creating command aggregate instances.
Implementations of this interface are responsible for instantiating command aggregates with the appropriate metadata and state aggregate.
Inheritors
Functions
Link copied to clipboard
abstract fun <C : Any, S : Any> create(metadata: AggregateMetadata<C, S>, stateAggregate: StateAggregate<S>): CommandAggregate<C, S>
Creates a new command aggregate instance.