org.axonframework.contextsupport.spring
Class SpringParameterResolverFactoryBean
java.lang.Object
org.axonframework.contextsupport.spring.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:
SpringBeanParameterResolverFactory
,
ClasspathParameterResolverFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringParameterResolverFactoryBean
public SpringParameterResolverFactoryBean()
getObject
public ParameterResolverFactory getObject()
throws Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean<ParameterResolverFactory>
- Throws:
Exception
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()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
setAdditionalFactories
public void setAdditionalFactories(List<ParameterResolverFactory> additionalFactories)
- Defines any additional parameter resovler factories that need to be use 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:
SpringBeanParameterResolverFactory
,
ClasspathParameterResolverFactory
setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)
- Specified by:
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
Copyright © 2010-2016. All Rights Reserved.