Class AbstractRepository.Builder<T>

java.lang.Object
org.axonframework.modelling.command.AbstractRepository.Builder<T>
Type Parameters:
T - a generic specifying the Aggregate type contained in this Repository implementation
Direct Known Subclasses:
LockingRepository.Builder
Enclosing class:
AbstractRepository<T,A extends Aggregate<T>>

public abstract static class AbstractRepository.Builder<T> extends Object
Abstract Builder class to instantiate AbstractRepository implementations.

This Builder's main goal is to build an AggregateModel specifying generic T as the aggregate type to be stored. All aggregates in this repository must be instanceOf this aggregate type. To instantiate this AggregateModel, either an AggregateModel can be provided directly or an aggregateType of type Class can be used. The latter will internally resolve to an AggregateModel. Thus, either the AggregateModel or the aggregateType should be provided.

The SpanFactory defaults to a NoOpSpanFactory.