Interface MethodInvoker
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A method invoker used by rpc to invoke a requested method. Method invokers should only get created once for a class,
never multiple times during rpc processing.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptioncallMethod(@NonNull Object... arguments) Invokes the target method of this invoker using the given arguments.
-
Method Details
-
callMethod
Invokes the target method of this invoker using the given arguments.- Parameters:
arguments- the arguments to use when invoking the target method.- Returns:
- the return value of the method invocation.
- Throws:
NullPointerException- if the given arguments array is null.
-