|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.annotation.AnnotationBeanWiringInfoResolver
public class AnnotationBeanWiringInfoResolver
BeanWiringInfoResolver
that
uses the Configurable annotation to identify which classes need autowiring.
The bean name to look up will be taken from the Configurable
annotation
if specified; otherwise the default will be the fully-qualified name of the
class being configured.
Configurable
,
ClassNameBeanWiringInfoResolver
Constructor Summary | |
---|---|
AnnotationBeanWiringInfoResolver()
|
Method Summary | |
---|---|
protected BeanWiringInfo |
buildWiringInfo(Object beanInstance,
Configurable annotation)
Build the BeanWiringInfo for the given Configurable annotation. |
protected String |
getDefaultBeanName(Object beanInstance)
Determine the default bean name for the specified bean instance. |
BeanWiringInfo |
resolveWiringInfo(Object beanInstance)
Resolve the BeanWiringInfo for the given bean instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationBeanWiringInfoResolver()
Method Detail |
---|
public BeanWiringInfo resolveWiringInfo(Object beanInstance)
BeanWiringInfoResolver
resolveWiringInfo
in interface BeanWiringInfoResolver
beanInstance
- the bean instance to resolve info for
null
if not foundprotected BeanWiringInfo buildWiringInfo(Object beanInstance, Configurable annotation)
beanInstance
- the bean instanceannotation
- the Configurable annotation found on the bean class
protected String getDefaultBeanName(Object beanInstance)
The default implementation returns the superclass name for a CGLIB proxy and the name of the plain bean class else.
beanInstance
- the bean instance to build a default name for
ClassUtils.getUserClass(Class)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |