类 DubboAnnotationUtils


  • public class DubboAnnotationUtils
    extends Object
    Dubbo Annotation Utilities Class
    从以下版本开始:
    2.5.11
    另请参阅:
    AnnotationUtils
    • 构造器详细资料

      • DubboAnnotationUtils

        public DubboAnnotationUtils()
    • 方法详细资料

      • resolveInterfaceName

        public static String resolveInterfaceName​(org.springframework.core.annotation.AnnotationAttributes attributes,
                                                  Class<?> defaultInterfaceClass)
        Resolve the interface name from AnnotationAttributes
        参数:
        attributes - AnnotationAttributes instance, may be @Service or @Reference
        defaultInterfaceClass - the default class of interface
        返回:
        the interface name if found
        抛出:
        IllegalStateException - if interface name was not found
      • resolveServiceInterfaceClass

        public static Class<?> resolveServiceInterfaceClass​(org.springframework.core.annotation.AnnotationAttributes attributes,
                                                            Class<?> defaultInterfaceClass)
                                                     throws IllegalArgumentException
        Resolve the class of Dubbo Service interface from the specified annotation attributes and annotated class.
        参数:
        attributes - annotation attributes
        defaultInterfaceClass - the annotated class.
        返回:
        the class of Dubbo Service interface
        抛出:
        IllegalArgumentException - if can't resolved