Class 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
- All Implemented Interfaces:
- Cloneable,- Aware,- BeanFactoryAware,- AutowireCandidateResolver
public class ContextAnnotationAutowireCandidateResolver
extends QualifierAnnotationAutowireCandidateResolver
Complete implementation of the
 
AutowireCandidateResolver strategy
 interface, providing support for qualifier annotations as well as for lazy resolution
 driven by the Lazy annotation in the context.annotation package.- Since:
- 4.0
- Author:
- Juergen Hoeller
- 
Field SummaryFields inherited from class org.springframework.beans.factory.support.SimpleAutowireCandidateResolverINSTANCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ObjectbuildLazyResolutionProxy(DependencyDescriptor descriptor, String beanName) Class<?>getLazyResolutionProxyClass(DependencyDescriptor descriptor, String beanName) Determine the proxy class for lazy resolution of the dependency target, if demanded by the injection point.getLazyResolutionProxyIfNecessary(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) Methods inherited from class org.springframework.beans.factory.annotation.QualifierAnnotationAutowireCandidateResolveraddQualifierType, checkQualifier, checkQualifiers, extractValue, findValue, getFactoryMethodAnnotation, getQualifiedElementAnnotation, getSuggestedValue, hasQualifier, isAutowireCandidate, isQualifier, isRequired, setValueAnnotationTypeMethods inherited from class org.springframework.beans.factory.support.GenericTypeAwareAutowireCandidateResolvercheckGenericTypeMatch, cloneIfNecessary, getBeanFactory, getResolvedDecoratedDefinition, getReturnTypeForFactoryMethod, setBeanFactory
- 
Constructor Details- 
ContextAnnotationAutowireCandidateResolverpublic ContextAnnotationAutowireCandidateResolver()
 
- 
- 
Method Details- 
getLazyResolutionProxyIfNecessary@Nullable public Object getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, @Nullable String beanName) Description copied from interface:AutowireCandidateResolverBuild a proxy for lazy resolution of the actual dependency target, if demanded by the injection point.The default implementation simply returns null.- Specified by:
- getLazyResolutionProxyIfNecessaryin interface- AutowireCandidateResolver
- Overrides:
- getLazyResolutionProxyIfNecessaryin class- SimpleAutowireCandidateResolver
- Parameters:
- descriptor- the descriptor for the target method parameter or field
- beanName- the name of the bean that contains the injection point
- Returns:
- the lazy resolution proxy for the actual dependency target,
 or nullif straight resolution is to be performed
 
- 
getLazyResolutionProxyClass@Nullable public Class<?> getLazyResolutionProxyClass(DependencyDescriptor descriptor, @Nullable String beanName) Description copied from interface:AutowireCandidateResolverDetermine the proxy class for lazy resolution of the dependency target, if demanded by the injection point.The default implementation simply returns null.- Specified by:
- getLazyResolutionProxyClassin interface- AutowireCandidateResolver
- Overrides:
- getLazyResolutionProxyClassin class- SimpleAutowireCandidateResolver
- Parameters:
- descriptor- the descriptor for the target method parameter or field
- beanName- the name of the bean that contains the injection point
- Returns:
- the lazy resolution proxy class for the dependency target, if any
 
- 
isLazy
- 
buildLazyResolutionProxyprotected Object buildLazyResolutionProxy(DependencyDescriptor descriptor, @Nullable String beanName) 
 
-