Package org.axonframework.spring.config
Class SpringSagaConfigurer
java.lang.Object
org.axonframework.spring.config.SpringSagaConfigurer
- All Implemented Interfaces:
ConfigurerModule,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class SpringSagaConfigurer
extends Object
implements 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(Configurer configurer) Configure this module to the given globalConfigurer.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
Description copied from interface:ConfigurerModuleConfigure this module to the given globalConfigurer.- Specified by:
configureModulein interfaceConfigurerModule- Parameters:
configurer- aConfigurerinstance to configure this module with
-
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
-