Package org.axonframework.spring.config
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.
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
ConstructorsConstructorDescriptionConfigurerFactoryBean(Configurer configurer) Deprecated.Initialize the factory bean, using the givenconfigurerto make available in the Application Context, once configured by the ConfigurerModules in that context. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Class<?> Deprecated.booleanDeprecated.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Deprecated.voidsetConfigurerModules(List<ConfigurerModule> configurerModules) Deprecated.Registers theconfigurerModulesthat provide context-sensitive default settings for the Configurer.
-
Constructor Details
-
ConfigurerFactoryBean
Deprecated.Initialize the factory bean, using the givenconfigurerto 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 theconfigurerModulesthat provide context-sensitive default settings for the Configurer.- Parameters:
configurerModules- the modules that provide defaults for the Configurer
-
getObject
Deprecated.- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<Configurer>
-
getObjectType
Deprecated.- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<Configurer>
-
setApplicationContext
public void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException Deprecated.- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
isSingleton
public boolean isSingleton()Deprecated.- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<Configurer>
-
SpringConfigurer, which itself is aConfigurerimplementation.