Class AggregateAnnotationCommandHandler.Builder<T>

java.lang.Object
org.axonframework.modelling.command.AggregateAnnotationCommandHandler.Builder<T>
Type Parameters:
T - the type of aggregate this AggregateAnnotationCommandHandler handles commands for
Enclosing class:
AggregateAnnotationCommandHandler<T>

public static class AggregateAnnotationCommandHandler.Builder<T> extends Object
Builder class to instantiate a AggregateAnnotationCommandHandler.

The CommandTargetResolver is defaulted to an AnnotationCommandTargetResolver The Repository is a hard requirement and as such should be provided. Next to that, this Builder's goal is to provide an AggregateModel (describing the structure of a given aggregate). 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.