类 BeanFactoryAnnotationUtils

    • 方法详细资料

      • isQualifierMatch

        public static boolean isQualifierMatch​(Predicate<String> qualifier,
                                               String beanName,
                                               @Nullable
                                               BeanFactory beanFactory)
        Check whether the named bean declares a qualifier of the given name.
        参数:
        qualifier - the qualifier to match
        beanName - the name of the candidate bean
        beanFactory - the factory from which to retrieve the named bean
        返回:
        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)
        从以下版本开始:
        5.0