Package org.axonframework.spring.config
Class SpringSagaConfigurer
java.lang.Object
org.axonframework.spring.config.SpringSagaConfigurer
- All Implemented Interfaces:
org.axonframework.config.ConfigurerModule,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class SpringSagaConfigurer
extends Object
implements org.axonframework.config.ConfigurerModule, org.springframework.context.ApplicationContextAware
A
ConfigurerModule implementation that configures a Saga based on configuration found in the Application
Context.- Since:
- 4.6.0
- Author:
- Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionSpringSagaConfigurer(Class<?> sagaType) Initialize the Saga for givensagaType. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureModule(org.axonframework.config.Configurer configurer) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetSagaStore(String sagaStore) Sets the bean name of theSagaStoreto configure.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.config.ConfigurerModule
order
-
Constructor Details
-
SpringSagaConfigurer
Initialize the Saga for givensagaType.- Parameters:
sagaType- The type of Saga to configure.
-
-
Method Details
-
setSagaStore
Sets the bean name of theSagaStoreto configure.- Parameters:
sagaStore- the bean name of theSagaStoreto configure.
-
configureModule
public void configureModule(org.axonframework.config.Configurer configurer) - Specified by:
configureModulein interfaceorg.axonframework.config.ConfigurerModule
-
setApplicationContext
public void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-