Class DefaultActionMethodInvoke

java.lang.Object
com.iohao.net.framework.core.flow.internal.DefaultActionMethodInvoke
All Implemented Interfaces:
ActionMethodInvoke

public final class DefaultActionMethodInvoke extends Object implements ActionMethodInvoke
Default action method invoker using MethodHandle for high-performance method dispatch.
Author:
渔民小镇
date:
2021-12-20
  • Method Details

    • invoke

      public Object invoke(FlowContext flowContext)
      Invoke the action method via MethodHandle, handling parameter parsing and validation.

      Parses request data into the expected parameter type, runs JSR-380 validation if configured, and dispatches the call through the appropriate MethodHandle based on the action's parameter position layout. Any exception thrown during invocation is caught and converted into a MessageException.

      Specified by:
      invoke in interface ActionMethodInvoke
      Parameters:
      flowContext - the current request flow context
      Returns:
      the action method return value, or null if an error occurred
    • me

      public static DefaultActionMethodInvoke me()
      Return the singleton instance.
      Returns:
      the singleton DefaultActionMethodInvoke