open class BeanConfigurerSupport : BeanFactoryAware, InitializingBean, DisposableBean
Convenient base class for bean configurers that can perform Dependency Injection on objects (however they may be created). Typically subclassed by AspectJ aspects.
Subclasses may also need a custom metadata resolution strategy, in the BeanWiringInfoResolver interface. The default implementation looks for a bean with the same name as the fully-qualified class name. (This is the default name of the bean in a Spring XML file if the 'id' attribute is not used.)
Author
Rob Harrop
Author
Rod Johnson
Author
Juergen Hoeller
Author
Adrian Colyer
Since
2.0
See Also
#setBeanWiringInfoResolverClassNameBeanWiringInfoResolver
BeanConfigurerSupport()
Convenient base class for bean configurers that can perform Dependency Injection on objects (however they may be created). Typically subclassed by AspectJ aspects. Subclasses may also need a custom metadata resolution strategy, in the BeanWiringInfoResolver interface. The default implementation looks for a bean with the same name as the fully-qualified class name. (This is the default name of the bean in a Spring XML file if the ' |
open fun afterPropertiesSet(): Unit
Check that a BeanFactory has been set. |
|
open fun configureBean(beanInstance: Any): Unit
Configure the bean instance. Subclasses can override this to provide custom configuration logic. Typically called by an aspect, for all bean instances matched by a pointcut. |
|
open fun destroy(): Unit
Release references to the BeanFactory and BeanWiringInfoResolver when the container is destroyed. |
|
open fun setBeanFactory(beanFactory: BeanFactory): Unit
Set the BeanFactory in which this aspect must configure beans. |
|
open fun setBeanWiringInfoResolver(beanWiringInfoResolver: BeanWiringInfoResolver): Unit
Set the BeanWiringInfoResolver to use. The default behavior is to look for a bean with the same name as the class. As an alternative, consider using annotation-driven bean wiring. |