Class AnnotationBeanWiringInfoResolver
java.lang.Object
org.springframework.beans.factory.annotation.AnnotationBeanWiringInfoResolver
- All Implemented Interfaces:
- BeanWiringInfoResolver
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.- Since:
- 2.0
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected BeanWiringInfobuildWiringInfo(Object beanInstance, Configurable annotation) Build theBeanWiringInfofor the givenConfigurableannotation.protected StringgetDefaultBeanName(Object beanInstance) Determine the default bean name for the specified bean instance.resolveWiringInfo(Object beanInstance) Resolve the BeanWiringInfo for the given bean instance.
- 
Constructor Details- 
AnnotationBeanWiringInfoResolverpublic AnnotationBeanWiringInfoResolver()
 
- 
- 
Method Details- 
resolveWiringInfoDescription copied from interface:BeanWiringInfoResolverResolve the BeanWiringInfo for the given bean instance.- Specified by:
- resolveWiringInfoin interface- BeanWiringInfoResolver
- Parameters:
- beanInstance- the bean instance to resolve info for
- Returns:
- the BeanWiringInfo, or nullif not found
 
- 
buildWiringInfoBuild theBeanWiringInfofor the givenConfigurableannotation.- Parameters:
- beanInstance- the bean instance
- annotation- the Configurable annotation found on the bean class
- Returns:
- the resolved BeanWiringInfo
 
- 
getDefaultBeanNameDetermine the default bean name for the specified bean instance.The default implementation returns the superclass name for a CGLIB proxy and the name of the plain bean class else. - Parameters:
- beanInstance- the bean instance to build a default name for
- Returns:
- the default bean name to use
- See Also:
 
 
-