Class AbstractSagaManager.Builder<T>

java.lang.Object
org.axonframework.modelling.saga.AbstractSagaManager.Builder<T>
Type Parameters:
T - a generic specifying the Saga type managed by this implementation
Direct Known Subclasses:
AnnotatedSagaManager.Builder
Enclosing class:
AbstractSagaManager<T>

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

The sagaFactory is defaulted to a sagaType.newInstance() call throwing a SagaInstantiationException if it fails, the ListenerInvocationErrorHandler is defaulted to a LoggingErrorHandler and the SagaManagerSpanFactory defaults to a DefaultSagaManagerSpanFactory backed by a NoOpSpanFactory. The SagaRepository and sagaType are hard requirements and as such should be provided.