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:
  • Constructor Details

    • SpringParameterResolverFactoryBean

      public SpringParameterResolverFactoryBean()
  • Method Details

    • getObject

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

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

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<ParameterResolverFactory>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • setAdditionalFactories

      public void setAdditionalFactories(List<ParameterResolverFactory> additionalFactories)
      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

      public void setBeanClassLoader(@Nonnull ClassLoader classLoader)
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
    • 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