Class SpringCompatUtils
java.lang.Object
org.apache.dubbo.config.spring.util.SpringCompatUtils
Spring Compatibility Utils for spring 3.x/4.x/5.x/6.x
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?> static org.springframework.core.type.MethodMetadatagetFactoryMethodMetadata(org.springframework.beans.factory.annotation.AnnotatedBeanDefinition annotatedBeanDefinition) static StringgetFactoryMethodReturnType(org.springframework.beans.factory.annotation.AnnotatedBeanDefinition annotatedBeanDefinition) static ClassgetGenericTypeOfReturnType(org.springframework.core.type.MethodMetadata factoryMethodMetadata) Get the generic type of return type of the method.static <T> TgetPropertyValue(org.springframework.beans.PropertyValues pvs, String propertyName) static booleanstatic Class<?> static Class<?>
-
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
-
serviceAnnotationPostProcessor
-
dubboInfraBeanRegisterPostProcessor
-