spring-framework / org.springframework.beans.factory.annotation / QualifierAnnotationAutowireCandidateResolver / isAutowireCandidate

isAutowireCandidate

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

Overrides GenericTypeAwareAutowireCandidateResolver.isAutowireCandidate

Determine whether the provided bean definition is an autowire candidate.

To be considered a candidate the bean's autowire-candidate attribute must not have been set to 'false'. Also, if an annotation on the field or parameter to be autowired is recognized by this bean factory as a qualifier, the bean must 'match' against the annotation as well as any attributes it may contain. The bean definition must contain the same qualifier or match by meta attributes. A "value" attribute will fallback to match against the bean name or an alias if a qualifier or attribute does not match.

See Also
Qualifier