Class AnnotatedSagaRepository.Builder<T>

java.lang.Object
org.axonframework.modelling.saga.repository.LockingSagaRepository.Builder<T>
org.axonframework.modelling.saga.repository.AnnotatedSagaRepository.Builder<T>
Type Parameters:
T - a generic specifying the Saga type contained in this SagaRepository implementation
Enclosing class:
AnnotatedSagaRepository<T>

public static class AnnotatedSagaRepository.Builder<T> extends LockingSagaRepository.Builder<T>
Builder class to instantiate a AnnotatedSagaRepository.

The ResourceInjector is defaulted to a NoResourceInjector. This Builder either allows directly setting a SagaModel of generic type T, or it will generate one based of the required sagaType field of type Class. Thus, either the SagaModel or the sagaType should be provided. All Sagas in this repository must be instanceOf this saga type. Additionally, the sagaType and SagaStore are hard requirements and as such should be provided.