public class DubboAnnotationUtils extends Object
AnnotationUtils| Constructor and Description |
|---|
DubboAnnotationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
resolveInterfaceName(org.springframework.core.annotation.AnnotationAttributes attributes,
Class<?> defaultInterfaceClass)
Resolve the interface name from
AnnotationAttributes |
static String |
resolveInterfaceName(Reference reference,
Class<?> defaultInterfaceClass)
Deprecated.
|
static String |
resolveInterfaceName(Service service,
Class<?> defaultInterfaceClass)
Deprecated.
|
static Class<?> |
resolveServiceInterfaceClass(org.springframework.core.annotation.AnnotationAttributes attributes,
Class<?> defaultInterfaceClass)
|
@Deprecated public static String resolveInterfaceName(Service service, Class<?> defaultInterfaceClass) throws IllegalStateException
IllegalStateExceptionpublic static String resolveInterfaceName(org.springframework.core.annotation.AnnotationAttributes attributes, Class<?> defaultInterfaceClass)
AnnotationAttributesattributes - AnnotationAttributes instance, may be @Service or @ReferencedefaultInterfaceClass - the default class of interfaceIllegalStateException - if interface name was not foundpublic static Class<?> resolveServiceInterfaceClass(org.springframework.core.annotation.AnnotationAttributes attributes, Class<?> defaultInterfaceClass) throws IllegalArgumentException
class of Dubbo Service interface from the specified
annotation attributes and annotated class.attributes - annotation attributesdefaultInterfaceClass - the annotated class.class of Dubbo Service interfaceIllegalArgumentException - if can't resolved@Deprecated public static String resolveInterfaceName(Reference reference, Class<?> defaultInterfaceClass) throws IllegalStateException
IllegalStateExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.