java.lang.Object | |
↳ | org.springframework.beans.factory.wiring.BeanConfigurerSupport |
Convenient base class for 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.)
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger | Logger available to subclasses |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check that a
BeanFactory has been set. | |||||||||||
Configure the bean instance.
| |||||||||||
Release references to the
BeanFactory and
BeanWiringInfoResolver when the container is destroyed. | |||||||||||
Set the
BeanFactory in which this aspect must configure beans. | |||||||||||
Set the
BeanWiringInfoResolver to use. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create the default BeanWiringInfoResolver to be used if none was
specified explicitly.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanFactoryAware
| |||||||||||
From interface
org.springframework.beans.factory.DisposableBean
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
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.
beanInstance | the bean instance to configure (must not be null )
|
---|
Release references to the BeanFactory
and
BeanWiringInfoResolver
when the container is destroyed.
Set the BeanFactory
in which this aspect must configure beans.
beanFactory | owning BeanFactory (never null ).
The bean can immediately call methods on the factory. |
---|
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.
Create the default BeanWiringInfoResolver to be used if none was specified explicitly.
The default implementation builds a ClassNameBeanWiringInfoResolver
.
null
)