Class ActionCommand

java.lang.Object
com.iohao.net.framework.core.ActionCommand

public final class ActionCommand extends Object
ActionCommand command object, also known as action. When the business framework handles business processes, that is, during the processing phase, it can obtain various desired information through the action.
Author:
渔民小镇
date:
2021-12-12
  • Field Details

    • cmdInfo

      public final CmdInfo cmdInfo
    • actionController

      public final Object actionController
      A single controller object
    • actionControllerClass

      public final Class<?> actionControllerClass
      The class where the method is located
    • method

      public final Method method
      The method object
    • actionMethodParameters

      public final ActionMethodParameter[] actionMethodParameters
      The array of method parameter information
    • actionMethodReturn

      public final ActionMethodReturn actionMethodReturn
      The return type
    • actionCommandDoc

      public final ActionCommandDoc actionCommandDoc
    • actionParameterPosition

      public final ActionParameterPosition actionParameterPosition
    • methodHandle

      public final MethodHandle methodHandle
    • dataParameter

      public ActionMethodParameter dataParameter
    • deliveryContainer

      public boolean deliveryContainer
      true means it's managed by a container like Spring
  • Method Details

    • hasDataParameter

      public boolean hasDataParameter()
      Check if this action method has a data parameter (request body).
      Returns:
      true if a data parameter is present
    • getActionMethodName

      public String getActionMethodName()
      Get the name of the action method.
      Returns:
      the method name
    • containAnnotation

      public boolean containAnnotation(Class<? extends Annotation> annotationClass)
      Whether the action method contains the relevant annotation.
      Parameters:
      annotationClass - The relevant annotation
      Returns:
      true if it does
      Since:
      21.10
    • getAnnotation

      public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
      Get the relevant annotation for the action method.
      Type Parameters:
      T - t
      Parameters:
      annotationClass - The relevant annotation
      Returns:
      The relevant annotation
      Since:
      21.10
    • builder

      public static ActionCommand.ActionCommandBuilder builder()