org.axonframework.contextsupport.spring
Class ApplicationContextLookupParameterResolverFactory

java.lang.Object
  extended by org.axonframework.contextsupport.spring.ApplicationContextLookupParameterResolverFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<ParameterResolverFactory>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class ApplicationContextLookupParameterResolverFactory
extends Object
implements org.springframework.beans.factory.FactoryBean<ParameterResolverFactory>, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean

FactoryBean implementation that create a ParameterResolverFactory, which auto-detects beans implementing ParameterResolverFactory beans in the application context.

Since:
2.1.2
Author:
Allard Buijze

Constructor Summary
ApplicationContextLookupParameterResolverFactory(List<ParameterResolverFactory> defaultFactories)
          Creates an instance, using the given defaultFactories.
 
Method Summary
 void afterPropertiesSet()
           
 ParameterResolverFactory getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationContextLookupParameterResolverFactory

public ApplicationContextLookupParameterResolverFactory(List<ParameterResolverFactory> defaultFactories)
Creates an instance, using the given defaultFactories. These are added, regardless of the beans discovered in the application context.

Parameters:
defaultFactories - The ParameterResolverFactory instances to add by default
Method Detail

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>

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

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2010-2016. All Rights Reserved.