Class SpringUtils

java.lang.Object
org.axonframework.extension.spring.SpringUtils

public final class SpringUtils extends Object
Utility class for Spring specific helper functions.
Since:
3.1
Author:
Steven van Beelen
  • Method Details

    • isQualifierMatch

      public 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. 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.

      Parameters:
      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.
      Returns:
      True if the qualifier is found on the beanName; false if it is not found.