Class SpringCompatUtils

java.lang.Object
org.apache.dubbo.config.spring.util.SpringCompatUtils

public class SpringCompatUtils extends Object
Spring Compatibility Utils for spring 3.x/4.x/5.x/6.x
  • Constructor Details

    • SpringCompatUtils

      public SpringCompatUtils()
  • Method Details

    • getPropertyValue

      public static <T> T getPropertyValue(org.springframework.beans.PropertyValues pvs, String propertyName)
    • isFactoryMethodMetadataEnabled

      public static boolean isFactoryMethodMetadataEnabled()
    • getFactoryMethodReturnType

      public static String getFactoryMethodReturnType(org.springframework.beans.factory.annotation.AnnotatedBeanDefinition annotatedBeanDefinition)
    • getFactoryMethodMetadata

      public static org.springframework.core.type.MethodMetadata getFactoryMethodMetadata(org.springframework.beans.factory.annotation.AnnotatedBeanDefinition annotatedBeanDefinition)
    • getGenericTypeOfReturnType

      public static Class getGenericTypeOfReturnType(org.springframework.core.type.MethodMetadata factoryMethodMetadata)
      Get the generic type of return type of the method.
        Source method:
        ReferenceBean<DemoService> demoService()
      
        Result: DemoService.class
       
      Parameters:
      factoryMethodMetadata -
      Returns:
    • referenceAnnotationBeanPostProcessor

      public static Class<?> referenceAnnotationBeanPostProcessor()
    • serviceAnnotationPostProcessor

      public static Class<?> serviceAnnotationPostProcessor()
    • dubboInfraBeanRegisterPostProcessor

      public static Class<?> dubboInfraBeanRegisterPostProcessor()