Class DefaultActionMethodInvoke
java.lang.Object
com.iohao.net.framework.core.flow.internal.DefaultActionMethodInvoke
- All Implemented Interfaces:
ActionMethodInvoke
Default action method invoker using
MethodHandle for high-performance
method dispatch.- Author:
- 渔民小镇
- date:
- 2021-12-20
-
Method Summary
Modifier and TypeMethodDescriptioninvoke(FlowContext flowContext) Invoke the action method via MethodHandle, handling parameter parsing and validation.static DefaultActionMethodInvokeme()Return the singleton instance.
-
Method Details
-
invoke
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
MethodHandlebased on the action's parameter position layout. Any exception thrown during invocation is caught and converted into aMessageException.- Specified by:
invokein interfaceActionMethodInvoke- Parameters:
flowContext- the current request flow context- Returns:
- the action method return value, or
nullif an error occurred
-
me
Return the singleton instance.- Returns:
- the singleton
DefaultActionMethodInvoke
-