spring-framework / org.springframework.beans.factory.annotation / BeanFactoryAnnotationUtils / isQualifierMatch

isQualifierMatch

open static fun isQualifierMatch(qualifier: Predicate<String>, beanName: String, @Nullable beanFactory: BeanFactory): Boolean

Check whether the named bean declares a qualifier of the given name.

Parameters

qualifier - the qualifier to match

beanName - the name of the candidate bean

beanFactory - the BeanFactory from which to retrieve the named bean

Return
true if either the bean definition (in the XML case) or the bean's factory method (in the @Bean case) defines a matching qualifier value (through <qualifier> or @Qualifier)

Since
5.0