类 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
- 所有已实现的接口:
Cloneable,Aware,BeanFactoryAware,AutowireCandidateResolver
public class ContextAnnotationAutowireCandidateResolver extends QualifierAnnotationAutowireCandidateResolver
Complete implementation of theAutowireCandidateResolverstrategy interface, providing support for qualifier annotations as well as for lazy resolution driven by theLazyannotation in thecontext.annotationpackage.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
字段概要
从类继承的字段 org.springframework.beans.factory.support.SimpleAutowireCandidateResolver
INSTANCE
构造器概要
构造器 构造器 说明 ContextAnnotationAutowireCandidateResolver()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected ObjectbuildLazyResolutionProxy(DependencyDescriptor descriptor, String beanName)ObjectgetLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, String beanName)Build a proxy for lazy resolution of the actual dependency target, if demanded by the injection point.protected booleanisLazy(DependencyDescriptor descriptor)从类继承的方法 org.springframework.beans.factory.annotation.QualifierAnnotationAutowireCandidateResolver
addQualifierType, checkQualifier, checkQualifiers, extractValue, findValue, getFactoryMethodAnnotation, getQualifiedElementAnnotation, getSuggestedValue, hasQualifier, isAutowireCandidate, isQualifier, isRequired, setValueAnnotationType
从类继承的方法 org.springframework.beans.factory.support.GenericTypeAwareAutowireCandidateResolver
checkGenericTypeMatch, cloneIfNecessary, getBeanFactory, getResolvedDecoratedDefinition, getReturnTypeForFactoryMethod, setBeanFactory
构造器详细资料
ContextAnnotationAutowireCandidateResolver
public ContextAnnotationAutowireCandidateResolver()
方法详细资料
getLazyResolutionProxyIfNecessary
@Nullable public Object getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, @Nullable String beanName)
从接口复制的说明:AutowireCandidateResolverBuild a proxy for lazy resolution of the actual dependency target, if demanded by the injection point.The default implementation simply returns
null.- 指定者:
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
nullif straight resolution is to be performed
isLazy
protected boolean isLazy(DependencyDescriptor descriptor)
buildLazyResolutionProxy
protected Object buildLazyResolutionProxy(DependencyDescriptor descriptor, @Nullable String beanName)