createAggregateStorage

public abstract AggregateStorage<I> createAggregateStorage<I>(ContextSpec context, Class<? extends Aggregate<I, ? extends Object, ? extends Object>> aggregateClass)

Creates a new AggregateStorage.

Parameters

<I>

the type of aggregate IDs

context

specification of the Bounded Context AggregateRepository of which requests the creation of the storage

aggregateClass

the class of Aggregates to be stored