public interface ServiceAnnotationUtils
| Modifier and Type | Field and Description |
|---|---|
static String |
DUBBO_SERVICE_ANNOTATION_TYPE
The class name of @DubboService
|
static String |
GROUP_ATTRIBUTE_NAME
the attribute name of @Service.group()
|
static String |
INTERFACE_CLASS_ATTRIBUTE_NAME
the attribute name of @Service.interfaceClass()
|
static String |
INTERFACE_NAME_ATTRIBUTE_NAME
the attribute name of @Service.interfaceName()
|
static String |
LEGACY_SERVICE_ANNOTATION_TYPE
Deprecated.
Recommend
DUBBO_SERVICE_ANNOTATION_TYPE |
static String |
SERVICE_ANNOTATION_TYPE
Deprecated.
Recommend
DUBBO_SERVICE_ANNOTATION_TYPE |
static Set<String> |
SUPPORTED_ANNOTATION_TYPES |
static String |
VERSION_ATTRIBUTE_NAME
the attribute name of @Service.version()
|
| Modifier and Type | Method and Description |
|---|---|
static AnnotationMirror |
getAnnotation(Iterable<? extends AnnotationMirror> annotationMirrors) |
static AnnotationMirror |
getAnnotation(TypeElement annotatedClass) |
static String |
getGroup(AnnotationMirror serviceAnnotation) |
static String |
getVersion(AnnotationMirror serviceAnnotation) |
static boolean |
isServiceAnnotationPresent(TypeElement annotatedType) |
static String |
resolveServiceInterfaceName(TypeElement annotatedClass,
AnnotationMirror serviceAnnotation) |
@Deprecated static final String SERVICE_ANNOTATION_TYPE
DUBBO_SERVICE_ANNOTATION_TYPE@Deprecated static final String LEGACY_SERVICE_ANNOTATION_TYPE
DUBBO_SERVICE_ANNOTATION_TYPEstatic final String DUBBO_SERVICE_ANNOTATION_TYPE
static final String INTERFACE_CLASS_ATTRIBUTE_NAME
static final String INTERFACE_NAME_ATTRIBUTE_NAME
static final String GROUP_ATTRIBUTE_NAME
static final String VERSION_ATTRIBUTE_NAME
static boolean isServiceAnnotationPresent(TypeElement annotatedType)
static AnnotationMirror getAnnotation(TypeElement annotatedClass)
static AnnotationMirror getAnnotation(Iterable<? extends AnnotationMirror> annotationMirrors)
static String resolveServiceInterfaceName(TypeElement annotatedClass, AnnotationMirror serviceAnnotation)
static String getGroup(AnnotationMirror serviceAnnotation)
static String getVersion(AnnotationMirror serviceAnnotation)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.