public class DefinitionContextImpl extends Object implements DefinitionContext
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
优先级:
annotationClass不可覆盖时:
- method
- method.declaringClass
- moduleClass
annotationClass可覆盖时:
- method
- moduleClass
- method.declaringClass
|
protected <T extends Annotation> |
getAnnotationFrom(Class<T> annotationClass,
AnnotatedElement... accessibleObjects) |
<T extends Annotation> |
getDeclaringAnnotation(Class<T> annotationClass) |
Class<? extends ConcreteService> |
getDeclaringClass()
BizModule定义的class
|
Method |
getDeclaringMethod()
定义了BizUnit的method
|
String |
getModuleName() |
public Class<? extends ConcreteService> getDeclaringClass()
getDeclaringClass 在接口中 DefinitionContextpublic Method getDeclaringMethod()
getDeclaringMethod 在接口中 DefinitionContextpublic String getModuleName()
getModuleName 在接口中 DefinitionContextpublic final <T extends Annotation> T getDeclaringAnnotation(Class<T> annotationClass)
getDeclaringAnnotation 在接口中 DefinitionContextT - annotationClass - public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
annotationClass可覆盖时: - method - moduleClass - method.declaringClass
getAnnotation 在接口中 DefinitionContextT - annotationClass - protected <T extends Annotation> T getAnnotationFrom(Class<T> annotationClass, AnnotatedElement... accessibleObjects)
Copyright © 2018. All rights reserved.