spring-framework / org.springframework.beans.factory.support / SimpleAutowireCandidateResolver

SimpleAutowireCandidateResolver

open class SimpleAutowireCandidateResolver : AutowireCandidateResolver

AutowireCandidateResolver implementation to use when no annotation support is available. This implementation checks the bean definition only.

Author
Mark Fisher

Author
Juergen Hoeller

Since
2.5

Constructors

<init>

SimpleAutowireCandidateResolver()

AutowireCandidateResolver implementation to use when no annotation support is available. This implementation checks the bean definition only.

Functions

getLazyResolutionProxyIfNecessary

open fun getLazyResolutionProxyIfNecessary(descriptor: DependencyDescriptor, beanName: String): Any

getSuggestedValue

open fun getSuggestedValue(descriptor: DependencyDescriptor): Any

isAutowireCandidate

open fun isAutowireCandidate(bdHolder: BeanDefinitionHolder, descriptor: DependencyDescriptor): Boolean

isRequired

open fun isRequired(descriptor: DependencyDescriptor): Boolean

Inheritors

GenericTypeAwareAutowireCandidateResolver

open class GenericTypeAwareAutowireCandidateResolver : SimpleAutowireCandidateResolver, BeanFactoryAware

Basic AutowireCandidateResolver that performs a full generic type match with the candidate's type if the dependency is declared as a generic type (e.g. Repository<Customer>).

This is the base class for org.springframework.beans.factory.annotation.QualifierAnnotationAutowireCandidateResolver, providing an implementation all non-annotation-based resolution steps at this level.