|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.saga.AbstractSagaManager
org.axonframework.saga.annotation.AnnotatedSagaManager
public class AnnotatedSagaManager
Implementation of the SagaManager that uses annotations on the Sagas to describe the lifecycle management. Unlike the SimpleSagaManager, this implementation can manage several types of Saga in a single AnnotatedSagaManager.
| Constructor Summary | |
|---|---|
AnnotatedSagaManager(SagaRepository sagaRepository,
EventBus eventBus,
Class<? extends AbstractAnnotatedSaga>... sagaClasses)
Initialize the AnnotatedSagaManager using the given resources, and using a GenericSagaFactory. |
|
AnnotatedSagaManager(SagaRepository sagaRepository,
SagaFactory sagaFactory,
EventBus eventBus,
Class<? extends AbstractAnnotatedSaga>... sagaClasses)
Initialize the AnnotatedSagaManager using the given resources. |
|
| Method Summary | |
|---|---|
protected AssociationValue |
extractAssociationValue(Class<? extends Saga> sagaType,
EventMessage event)
Extracts the AssociationValue from the given event as relevant for a Saga of given
sagaType. |
protected SagaCreationPolicy |
getSagaCreationPolicy(Class<? extends Saga> sagaType,
EventMessage event)
Returns the Saga Creation Policy for a Saga of the given sagaType and event. |
Class<?> |
getTargetType()
Returns the instance type that this proxy delegates all event handling to. |
| Methods inherited from class org.axonframework.saga.AbstractSagaManager |
|---|
commit, handle, setSuppressExceptions, setSynchronizeSagaAccess, subscribe, unsubscribe |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotatedSagaManager(SagaRepository sagaRepository,
EventBus eventBus,
Class<? extends AbstractAnnotatedSaga>... sagaClasses)
GenericSagaFactory.
sagaRepository - The repository providing access to the Saga instanceseventBus - The event bus publishing the eventssagaClasses - The types of Saga that this instance should manage
public AnnotatedSagaManager(SagaRepository sagaRepository,
SagaFactory sagaFactory,
EventBus eventBus,
Class<? extends AbstractAnnotatedSaga>... sagaClasses)
sagaRepository - The repository providing access to the Saga instancessagaFactory - The factory creating new instances of a SagaeventBus - The event bus publishing the eventssagaClasses - The types of Saga that this instance should manage| Method Detail |
|---|
protected SagaCreationPolicy getSagaCreationPolicy(Class<? extends Saga> sagaType,
EventMessage event)
AbstractSagaManagersagaType and event.
getSagaCreationPolicy in class AbstractSagaManagersagaType - The type of Saga to get the creation policy forevent - The Event that is being dispatched to Saga instances
protected AssociationValue extractAssociationValue(Class<? extends Saga> sagaType,
EventMessage event)
AbstractSagaManagerevent as relevant for a Saga of given
sagaType.
extractAssociationValue in class AbstractSagaManagersagaType - The type of Saga about to handle the Eventevent - The event containing the association information
public Class<?> getTargetType()
EventListenerProxy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||