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.)
setBeanWiringInfoResolver, ClassNameBeanWiringInfoResolver
| Modifier and Type | Field and Description |
|---|---|
| private volatile ConfigurableListableBeanFactory | |
| private volatile BeanWiringInfoResolver | |
| protected final Log | logger
Logger available to subclasses. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Implements org. BeanFactory has been set.
|
| public void | configureBean(Object
the bean instance to configure (must not be beanInstance)null)Configure the bean instance. |
| protected BeanWiringInfoResolver | Returns: the default BeanWiringInfoResolver (nevernull)Create the default BeanWiringInfoResolver to be used if none was specified explicitly. |
| public void | destroy()
Implements org. BeanFactory and
BeanWiringInfoResolver when the container is destroyed.
|
| public void | setBeanFactory(BeanFactory
owning BeanFactory (never beanFactory)null).
The bean can immediately call methods on the factory.Implements org. BeanFactory in which this aspect must configure beans.
|
| public void | setBeanWiringInfoResolver(BeanWiringInfoResolver beanWiringInfoResolver)
Set the |
| beanFactory | back to summary |
|---|---|
| private volatile ConfigurableListableBeanFactory beanFactory
| |
| beanWiringInfoResolver | back to summary |
|---|---|
| private volatile BeanWiringInfoResolver beanWiringInfoResolver
| |
| logger | back to summary |
|---|---|
| protected final Log logger Logger available to subclasses. | |
| BeanConfigurerSupport | back to summary |
|---|---|
| public BeanConfigurerSupport() | |
| afterPropertiesSet | back to summary |
|---|---|
| public void afterPropertiesSet() Implements org. Check that a
| |
| configureBean | back to summary |
|---|---|
| public void configureBean(Object beanInstance) 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.
| |
| createDefaultBeanWiringInfoResolver | back to summary |
|---|---|
| protected BeanWiringInfoResolver createDefaultBeanWiringInfoResolver() Create the default BeanWiringInfoResolver to be used if none was specified explicitly. The default implementation builds a
| |
| destroy | back to summary |
|---|---|
| public void destroy() Implements org. Release references to the
| |
| setBeanFactory | back to summary |
|---|---|
| public void setBeanFactory(BeanFactory beanFactory) Implements org. Set the
| |
| setBeanWiringInfoResolver | back to summary |
|---|---|
| public void setBeanWiringInfoResolver(BeanWiringInfoResolver beanWiringInfoResolver) Set the 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. | |