Class ConfigurerFactoryBean

java.lang.Object
org.axonframework.spring.config.ConfigurerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<Configurer>, org.springframework.context.ApplicationContextAware

@Deprecated public class ConfigurerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<Configurer>, org.springframework.context.ApplicationContextAware
Deprecated.
Replaced by the SpringConfigurer, which itself is a Configurer implementation.
FactoryBean that creates an instance of a Configurer for use in a Spring Application Context.

This bean has a dependency on all ConfigurerModules in the Application Context, which are initialized before the Configurer is made available in the application context. This ensures that any customizations made by autowiring the Configurer will override any defaults set by a ConfigurerModule.

The ConfigurerFactoryBean is wired by the SpringAxonAutoConfigurer as part of Spring Boot Auto-Configuration and should not be wired "manually" in an Application Context.

Since:
4.2
Author:
Allard Buijze
  • Constructor Details

    • ConfigurerFactoryBean

      public ConfigurerFactoryBean(Configurer configurer)
      Deprecated.
      Initialize the factory bean, using the given configurer to make available in the Application Context, once configured by the ConfigurerModules in that context.
      Parameters:
      configurer - The Configurer to make available in the Application Context
  • Method Details

    • setConfigurerModules

      @Autowired(required=false) public void setConfigurerModules(List<ConfigurerModule> configurerModules)
      Deprecated.
      Registers the configurerModules that provide context-sensitive default settings for the Configurer.
      Parameters:
      configurerModules - the modules that provide defaults for the Configurer
    • getObject

      public Configurer getObject()
      Deprecated.
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<Configurer>
    • getObjectType

      public Class<?> getObjectType()
      Deprecated.
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<Configurer>
    • setApplicationContext

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

      public boolean isSingleton()
      Deprecated.
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<Configurer>