Class SpringParameterResolverFactoryBean
java.lang.Object
org.axonframework.extension.spring.config.annotation.SpringParameterResolverFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.FactoryBean<ParameterResolverFactory>,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
public class SpringParameterResolverFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<ParameterResolverFactory>, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Spring factory bean that creates a ParameterResolverFactory instance that is capable of resolving parameter values as
Spring Beans, in addition to the default behavior defined by Axon.
- Since:
- 2.3.1
- Author:
- Allard Buijze
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClass<?> booleanvoidsetAdditionalFactories(List<ParameterResolverFactory> additionalFactories) Defines any additional parameter resolver factories that need to be used to resolve parameters.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetBeanClassLoader(ClassLoader classLoader)
-
Constructor Details
-
SpringParameterResolverFactoryBean
public SpringParameterResolverFactoryBean()
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<ParameterResolverFactory>
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<ParameterResolverFactory>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<ParameterResolverFactory>
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
setAdditionalFactories
Defines any additional parameter resolver factories that need to be used to resolve parameters. By default, the ParameterResolverFactories found on the classpath, as well as a SpringBeanParameterResolverFactory are registered.- Parameters:
additionalFactories- The extra factories to register- See Also:
-
setBeanClassLoader
- Specified by:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
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
-