接口 DefinitionContext


public interface DefinitionContext
Created by davidoff shen on 2017-04-28.
  • 方法详细资料

    • getDeclaringClass

      Class<?> getDeclaringClass()
    • getDeclaringMethod

      Method getDeclaringMethod()
    • getModuleName

      String getModuleName()
    • getDeclaringAnnotation

      <T extends Annotation> T getDeclaringAnnotation(Class<T> annotationClass)
    • getAnnotation

      <T extends Annotation> T getAnnotation(Class<T> annotationClass)
      优先级: annotationClass不可覆盖时: - method - method.declaringClass - moduleClass

      annotationClass可覆盖时: - method - moduleClass - method.declaringClass

      类型参数:
      T -
      参数:
      annotationClass - annotationClass
      返回:
      annotation