Class ConfigurerFactoryBean

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

@Deprecated public class ConfigurerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.axonframework.config.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
  • Field Summary

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConfigurerFactoryBean(org.axonframework.config.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.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.axonframework.config.Configurer
    Deprecated.
     
    Deprecated.
     
    boolean
    Deprecated.
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
    Deprecated.
     
    void
    setConfigurerModules(List<org.axonframework.config.ConfigurerModule> configurerModules)
    Deprecated.
    Registers the configurerModules that provide context-sensitive default settings for the Configurer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigurerFactoryBean

      public ConfigurerFactoryBean(org.axonframework.config.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<org.axonframework.config.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 org.axonframework.config.Configurer getObject()
      Deprecated.
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<org.axonframework.config.Configurer>
    • getObjectType

      public Class<?> getObjectType()
      Deprecated.
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.axonframework.config.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<org.axonframework.config.Configurer>