org.axonframework.contextsupport.spring
Class AutowiredDependencyFactoryBean<T>
java.lang.Object
org.axonframework.contextsupport.spring.AutowiredDependencyFactoryBean<T>
- Type Parameters:
T - The type of autowired bean
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<T>, org.springframework.context.ApplicationContextAware
public class AutowiredDependencyFactoryBean<T>
- extends Object
- implements org.springframework.beans.factory.FactoryBean<T>, org.springframework.context.ApplicationContextAware
Convenience factory bean that locates a bean of the given type. This factory is used to explicitly defined autowired
dependencies on a per-property basis.
This factory does not create beans. It merely returns references to beans already existing.
- Since:
- 1.0
- Author:
- Allard Buijze
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutowiredDependencyFactoryBean
public AutowiredDependencyFactoryBean(Class<T> beanType)
- Creates a factory bean that automatically resolved to a bean of the give
beanType.
- Parameters:
beanType - The type of bean to return a reference for
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
getObject
public T getObject()
throws Exception
- Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<T>
- Throws:
Exception
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<T>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<T>
Copyright © 2010-2012. All Rights Reserved.