public class SimpleAutowireCandidateResolver extends Object implements AutowireCandidateResolver
AutowireCandidateResolver implementation to use when no annotation
support is available. This implementation checks the bean definition only.| 构造器和说明 |
|---|
SimpleAutowireCandidateResolver() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor,
String beanName)
Build a proxy for lazy resolution of the actual dependency target,
if demanded by the injection point.
|
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)
AutowireCandidateResolverThe default implementation checks
BeanDefinition.isAutowireCandidate().
isAutowireCandidate 在接口中 AutowireCandidateResolverbdHolder - the bean definition including bean name and aliasesdescriptor - the descriptor for the target method parameter or fieldBeanDefinition.isAutowireCandidate()public boolean isRequired(DependencyDescriptor descriptor)
AutowireCandidateResolverThe default implementation checks DependencyDescriptor.isRequired().
isRequired 在接口中 AutowireCandidateResolverdescriptor - the descriptor for the target method parameter or fieldDependencyDescriptor.isRequired()@Nullable public Object getSuggestedValue(DependencyDescriptor descriptor)
AutowireCandidateResolverThe default implementation simply returns null.
getSuggestedValue 在接口中 AutowireCandidateResolverdescriptor - the descriptor for the target method parameter or fieldnull if none found@Nullable public Object getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, @Nullable String beanName)
AutowireCandidateResolverThe default implementation simply returns null.
getLazyResolutionProxyIfNecessary 在接口中 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