public class SimpleAutowireCandidateResolver extends java.lang.Object implements AutowireCandidateResolver
AutowireCandidateResolver implementation to use when no annotation
support is available. This implementation checks the bean definition only.| Constructor and Description |
|---|
SimpleAutowireCandidateResolver() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.Object |
getSuggestedValue(DependencyDescriptor descriptor)
Determine whether a default value is suggested for the given dependency.
|
boolean |
isAutowireCandidate(BeanDefinitionHolder bdHolder,
DependencyDescriptor descriptor)
Determine whether the given bean definition qualifies as an
autowire candidate for the given dependency.
|
boolean |
isRequired(DependencyDescriptor descriptor)
Determine whether the given descriptor is effectively required.
|
public boolean isAutowireCandidate(BeanDefinitionHolder bdHolder, DependencyDescriptor descriptor)
AutowireCandidateResolverisAutowireCandidate in interface AutowireCandidateResolverbdHolder - the bean definition including bean name and aliasesdescriptor - the descriptor for the target method parameter or fieldpublic boolean isRequired(DependencyDescriptor descriptor)
The default implementation checks DependencyDescriptor.isRequired().
descriptor - the descriptor for the target method parameter or fieldDependencyDescriptor.isRequired()public java.lang.Object getSuggestedValue(DependencyDescriptor descriptor)
AutowireCandidateResolvergetSuggestedValue in interface AutowireCandidateResolverdescriptor - the descriptor for the target method parameter or fieldnull if none foundpublic java.lang.Object getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, java.lang.String beanName)
AutowireCandidateResolvergetLazyResolutionProxyIfNecessary in interface AutowireCandidateResolverdescriptor - 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 performed