类 ContextAnnotationAutowireCandidateResolver
- java.lang.Object
- org.springframework.beans.factory.support.SimpleAutowireCandidateResolver
- org.springframework.beans.factory.support.GenericTypeAwareAutowireCandidateResolver
- org.springframework.beans.factory.annotation.QualifierAnnotationAutowireCandidateResolver
- org.springframework.context.annotation.ContextAnnotationAutowireCandidateResolver
- 所有已实现的接口:
Aware
,BeanFactoryAware
,AutowireCandidateResolver
public class ContextAnnotationAutowireCandidateResolver extends QualifierAnnotationAutowireCandidateResolver
Complete implementation of theAutowireCandidateResolver
strategy interface, providing support for qualifier annotations as well as for lazy resolution driven by theLazy
annotation in thecontext.annotation
package.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
构造器概要
构造器 构造器 说明 ContextAnnotationAutowireCandidateResolver()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Object
buildLazyResolutionProxy(DependencyDescriptor descriptor, String beanName)
Object
getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, String beanName)
Build a proxy for lazy resolution of the actual dependency target, if demanded by the injection point.protected boolean
isLazy(DependencyDescriptor descriptor)
从类继承的方法 org.springframework.beans.factory.annotation.QualifierAnnotationAutowireCandidateResolver
addQualifierType, checkQualifier, checkQualifiers, extractValue, findValue, getFactoryMethodAnnotation, getQualifiedElementAnnotation, getSuggestedValue, isAutowireCandidate, isQualifier, isRequired, setValueAnnotationType
从类继承的方法 org.springframework.beans.factory.support.GenericTypeAwareAutowireCandidateResolver
checkGenericTypeMatch, getBeanFactory, getResolvedDecoratedDefinition, getReturnTypeForFactoryMethod, setBeanFactory
构造器详细资料
ContextAnnotationAutowireCandidateResolver
public ContextAnnotationAutowireCandidateResolver()
方法详细资料
getLazyResolutionProxyIfNecessary
public Object getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, String beanName)
从接口复制的说明:AutowireCandidateResolver
Build a proxy for lazy resolution of the actual dependency target, if demanded by the injection point.- 指定者:
getLazyResolutionProxyIfNecessary
在接口中AutowireCandidateResolver
- 覆盖:
getLazyResolutionProxyIfNecessary
在类中SimpleAutowireCandidateResolver
- 参数:
descriptor
- the descriptor for the target method parameter or fieldbeanName
- the name of the bean that contains the injection point- 返回:
- the lazy resolution proxy for the actual dependency target, or
null
if straight resolution is to be performed
isLazy
protected boolean isLazy(DependencyDescriptor descriptor)
buildLazyResolutionProxy
protected Object buildLazyResolutionProxy(DependencyDescriptor descriptor, String beanName)