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 Details

    • SpringSagaConfigurer

      public SpringSagaConfigurer(Class<?> sagaType)
      Initialize the Saga for given sagaType.
      Parameters:
      sagaType - The type of Saga to configure.
  • Method Details

    • setSagaStore

      public void setSagaStore(String sagaStore)
      Sets the bean name of the SagaStore to configure.
      Parameters:
      sagaStore - the bean name of the SagaStore to configure.
    • configureModule

      public void configureModule(Configurer configurer)
      Description copied from interface: ConfigurerModule
      Configure this module to the given global Configurer.
      Specified by:
      configureModule in interface ConfigurerModule
      Parameters:
      configurer - a Configurer instance to configure this module with
    • setApplicationContext

      public void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException