Class SpringUtils
java.lang.Object
org.axonframework.extension.spring.SpringUtils
Utility class for Spring specific helper functions.
- Since:
- 3.1
- Author:
- Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisQualifierMatch(String beanName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, String qualifier) Match if the givenqualifiercan be found on theBeanDefinitionof the givenbeanName.
-
Method Details
-
isQualifierMatch
public static boolean isQualifierMatch(String beanName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, String qualifier) Match if the givenqualifiercan be found on theBeanDefinitionof the givenbeanName. Uses aConfigurableListableBeanFactoryto find the required information on the bean definition. Copied fromBeanFactoryAnnotationUtils, plus an additional function to check for the Qualifier annotation on a factory method and some style adjustments.- Parameters:
beanName- AStringfor the bean name to check its qualifier for.beanFactory- AConfigurableListableBeanFactoryused to retrieve information about the givenbeanName.qualifier- AStringfor thequalifierwe trying to match with the qualifier of the givenbeanName.- Returns:
- True if the
qualifieris found on thebeanName; false if it is not found.
-