The Spring Framework

org.springframework.beans.factory.annotation
Class AnnotationBeanWiringInfoResolver

java.lang.Object
  extended by org.springframework.beans.factory.annotation.AnnotationBeanWiringInfoResolver
All Implemented Interfaces:
BeanWiringInfoResolver

public class AnnotationBeanWiringInfoResolver
extends Object
implements 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
See Also:
Configurable, ClassNameBeanWiringInfoResolver

Constructor Summary
AnnotationBeanWiringInfoResolver()
           
 
Method Summary
 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

AnnotationBeanWiringInfoResolver

public AnnotationBeanWiringInfoResolver()
Method Detail

resolveWiringInfo

public BeanWiringInfo resolveWiringInfo(Object beanInstance)
Description copied from interface: BeanWiringInfoResolver
Resolve the BeanWiringInfo for the given bean instance.

Specified by:
resolveWiringInfo in interface BeanWiringInfoResolver
Parameters:
beanInstance - the bean instance to resolve info for
Returns:
the BeanWiringInfo, or null if not found

The Spring Framework

Copyright © 2002-2006 The Spring Framework.