| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.beans.factory.wiring.BeanConfigurerSupport
public class 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.)
setBeanWiringInfoResolver(org.springframework.beans.factory.wiring.BeanWiringInfoResolver), 
ClassNameBeanWiringInfoResolver| Field Summary | |
|---|---|
| protected  Log | loggerLogger available to subclasses | 
| Constructor Summary | |
|---|---|
| BeanConfigurerSupport() | |
| Method Summary | |
|---|---|
|  void | afterPropertiesSet()Check that a BeanFactoryhas been set. | 
|  void | configureBean(Object beanInstance)Configure the bean instance. | 
| protected  BeanWiringInfoResolver | createDefaultBeanWiringInfoResolver()Create the default BeanWiringInfoResolver to be used if none was specified explicitly. | 
|  void | destroy()Release references to the BeanFactoryandBeanWiringInfoResolverwhen the container is destroyed. | 
|  void | setBeanFactory(BeanFactory beanFactory)Set the BeanFactoryin which this aspect must configure beans. | 
|  void | setBeanWiringInfoResolver(BeanWiringInfoResolver beanWiringInfoResolver)Set the BeanWiringInfoResolverto use. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected final Log logger
| Constructor Detail | 
|---|
public BeanConfigurerSupport()
| Method Detail | 
|---|
public void setBeanWiringInfoResolver(BeanWiringInfoResolver beanWiringInfoResolver)
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.
ClassNameBeanWiringInfoResolver, 
AnnotationBeanWiringInfoResolverpublic void setBeanFactory(BeanFactory beanFactory)
BeanFactory in which this aspect must configure beans.
setBeanFactory in interface BeanFactoryAwarebeanFactory - owning BeanFactory (never null).
 The bean can immediately call methods on the factory.BeanInitializationExceptionprotected BeanWiringInfoResolver createDefaultBeanWiringInfoResolver()
The default implementation builds a ClassNameBeanWiringInfoResolver.
null)public void afterPropertiesSet()
BeanFactory has been set.
afterPropertiesSet in interface InitializingBeanpublic void destroy()
BeanFactory and
 BeanWiringInfoResolver when the container is destroyed.
destroy in interface DisposableBeanpublic void configureBean(Object beanInstance)
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)| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||