类 AbstractUnit<PARAM extends AbstractParam>

java.lang.Object
org.coodex.concrete.common.modules.AbstractUnit<PARAM>
所有已实现的接口:
Comparable<AbstractUnit<PARAM>>, Annotated, Documentable
直接已知子类:
AUnit, OwnServiceUnit

public abstract class AbstractUnit<PARAM extends AbstractParam> extends Object implements Annotated, Comparable<AbstractUnit<PARAM>>, Documentable
Created by davidoff shen on 2016-11-30.
  • 构造器详细资料

  • 方法详细资料

    • afterInit

      protected void afterInit()
    • getDeclaringModule

      public AbstractModule<?> getDeclaringModule()
    • getMethod

      public Method getMethod()
    • getName

      public abstract String getName()
      返回:
      服务名称
    • buildParam

      protected abstract PARAM buildParam(Method method, int index)
    • getLabel

      public String getLabel()
      指定者:
      getLabel 在接口中 Documentable
      返回:
      文档化的名称
    • getDescription

      public String getDescription()
      指定者:
      getDescription 在接口中 Documentable
      返回:
      服务说明
    • getFunctionName

      public String getFunctionName()
      返回:
      调用方法名
    • getInvokeType

      public abstract String getInvokeType()
      返回:
      调用方式
    • getReturnType

      public Class<?> getReturnType()
      返回:
      返回值类型
    • getGenericReturnType

      public Type getGenericReturnType()
      返回:
      返回值泛型类型
    • getAccessAllow

      public AccessAllow getAccessAllow()
      返回:
      access control list
    • getRoles

      public String[] getRoles()
    • getSignable

      public Signable getSignable()
      返回:
      获取签名信息
    • getDeclaredAnnotation

      public <T extends Annotation> T getDeclaredAnnotation(Class<T> annotationClass)
      指定者:
      getDeclaredAnnotation 在接口中 Annotated
      类型参数:
      T -
      参数:
      annotationClass - annotationClass
      返回:
      获取某个注解
    • getAnnotation

      public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
    • getAnnotations

      public Annotation[] getAnnotations()
      指定者:
      getAnnotations 在接口中 Annotated
      返回:
      获取全部注解
    • getParameters

      public final PARAM[] getParameters()
      返回:
      方法参数
    • toArrays

      protected abstract PARAM[] toArrays(List<PARAM> params)
    • getContext

      public DefinitionContext getContext()
    • toContext

      protected abstract DefinitionContext toContext()
    • isDeprecated

      public boolean isDeprecated()