public class SpringUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isQualifierMatch(String beanName,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
String qualifier)
Match if the given
qualifier can be found on the
BeanDefinition of the given beanName . |
public static boolean isQualifierMatch(String beanName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, String qualifier)
qualifier
can be found on the
BeanDefinition
of the given beanName
.
Uses a ConfigurableListableBeanFactory
to find the required
information on the bean definition.
Copied from BeanFactoryAnnotationUtils
, plus an additional
function to check for the Qualifier annotation on a factory method and some style adjustments.beanName
- A String
for the bean name to check its qualifier for.beanFactory
- A ConfigurableListableBeanFactory
used to
retrieve information about the given beanName
.qualifier
- A String
for the qualifier
we trying to match with the qualifier of
the given beanName
.qualifier
is found on the beanName
; false if it is not found.Copyright © 2010–2017. All rights reserved.