public class ContextAnnotationAutowireCandidateResolver extends QualifierAnnotationAutowireCandidateResolver
AutowireCandidateResolver
strategy
interface, providing support for qualifier annotations as well as for lazy resolution
driven by the Lazy
annotation in the context.annotation
package.Constructor and Description |
---|
ContextAnnotationAutowireCandidateResolver() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
buildLazyResolutionProxy(DependencyDescriptor descriptor,
java.lang.String beanName) |
java.lang.Object |
getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor,
java.lang.String beanName)
Build a proxy for lazy resolution of the actual dependency target,
if demanded by the injection point.
|
protected boolean |
isLazy(DependencyDescriptor descriptor) |
addQualifierType, checkQualifier, checkQualifiers, extractValue, findValue, getFactoryMethodAnnotation, getQualifiedElementAnnotation, getSuggestedValue, hasQualifier, isAutowireCandidate, isQualifier, isRequired, setValueAnnotationType
checkGenericTypeMatch, getBeanFactory, getResolvedDecoratedDefinition, getReturnTypeForFactoryMethod, setBeanFactory
public ContextAnnotationAutowireCandidateResolver()
@Nullable public java.lang.Object getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, @Nullable java.lang.String beanName)
AutowireCandidateResolver
The default implementation simply returns null
.
getLazyResolutionProxyIfNecessary
in interface AutowireCandidateResolver
getLazyResolutionProxyIfNecessary
in class SimpleAutowireCandidateResolver
descriptor
- the descriptor for the target method parameter or fieldbeanName
- the name of the bean that contains the injection pointnull
if straight resolution is to be performedprotected boolean isLazy(DependencyDescriptor descriptor)
protected java.lang.Object buildLazyResolutionProxy(DependencyDescriptor descriptor, @Nullable java.lang.String beanName)