create

abstract fun <C : Any, S : Any> create(aggregateId: AggregateId, aggregateMetadata: AggregateMetadata<C, S>): AggregateProcessor<C>

Creates an aggregate processor for the specified aggregate ID and metadata.

Return

A new aggregate processor instance.

Parameters

C

The type of the command aggregate root.

S

The type of the state aggregate.

aggregateId

The ID of the aggregate to create a processor for.

aggregateMetadata

The metadata describing the aggregate.