public abstract class AbstractModule<UNIT extends AbstractUnit> extends Object implements Annotated, Comparable<AbstractModule>
| 构造器和说明 |
|---|
AbstractModule(Class<?> interfaceClass) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract UNIT |
buildUnit(Method method) |
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations()
获取全部注解
|
<T extends Annotation> |
getDeclaredAnnotation(Class<T> annotationClass)
获取某个注解
|
String |
getDescription()
服务模块说明
|
Class<?> |
getInterfaceClass()
服务模块所在的class
|
String |
getLabel()
文档化的标题
|
abstract String |
getName()
服务模块名称
|
UNIT[] |
getUnits()
所有的服务原子
|
protected abstract UNIT[] |
toArrays(List<UNIT> units) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareTopublic AbstractModule(Class<?> interfaceClass)
public Class<?> getInterfaceClass()
public abstract String getName()
public String getLabel()
public String getDescription()
public final UNIT[] getUnits()
public <T extends Annotation> T getDeclaredAnnotation(Class<T> annotationClass)
AnnotatedgetDeclaredAnnotation 在接口中 Annotatedpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
public Annotation[] getAnnotations()
AnnotatedgetAnnotations 在接口中 AnnotatedCopyright © 2020. All rights reserved.