类 DubboAnnotationUtils
- java.lang.Object
-
- org.apache.dubbo.config.spring.util.DubboAnnotationUtils
-
public class DubboAnnotationUtils extends Object
Dubbbo Annotation Utilities Class- 从以下版本开始:
- 2.5.11
- 另请参阅:
AnnotationUtils
-
-
构造器概要
构造器 构造器 说明 DubboAnnotationUtils()
-
方法概要
所有方法 静态方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static StringresolveInterfaceName(Map<String,Object> attributes, Class<?> defaultInterfaceClass)Resolve the interface name from annotation attributesstatic StringresolveInterfaceName(Reference reference, Class<?> defaultInterfaceClass)已过时。static StringresolveInterfaceName(Service service, Class<?> defaultInterfaceClass)已过时。static Class<?>resolveServiceInterfaceClass(Map<String,Object> attributes, Class<?> defaultInterfaceClass)Resolve the interface class of Dubbo Service annotation from the specified annotation attributes and annotated class.
-
-
-
方法详细资料
-
resolveInterfaceName
@Deprecated public static String resolveInterfaceName(Service service, Class<?> defaultInterfaceClass) throws IllegalStateException
已过时。
-
resolveInterfaceName
public static String resolveInterfaceName(Map<String,Object> attributes, Class<?> defaultInterfaceClass)
Resolve the interface name from annotation attributes- 参数:
attributes- annotation attributes instance, may be@Serviceor@ReferencedefaultInterfaceClass- the default class of interface- 返回:
- the interface name if found
- 抛出:
IllegalStateException- if interface name was not found
-
resolveServiceInterfaceClass
public static Class<?> resolveServiceInterfaceClass(Map<String,Object> attributes, Class<?> defaultInterfaceClass) throws IllegalArgumentException
Resolve the interface class of Dubbo Service annotation from the specified annotation attributes and annotated class.- 参数:
attributes- annotation attributesdefaultInterfaceClass- the annotated class.- 返回:
- the class of Dubbo Service interface
- 抛出:
IllegalArgumentException- if can't resolved
-
resolveInterfaceName
@Deprecated public static String resolveInterfaceName(Reference reference, Class<?> defaultInterfaceClass) throws IllegalStateException
已过时。
-
-