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.
- Since:
- 4.0
-
Method Summary
-
Method Details
-
callMethod
@Nullable @Nullable Object callMethod(@NonNull @NonNull Object target, @NonNull @NonNull Object... arguments) Invokes the target method of this invoker using the given arguments on the given instance.- Parameters:
target- the target instance to invoke the method on.arguments- the arguments to use when invoking the target method.- Returns:
- the return value of the method invocation.
- Throws:
NullPointerException- if the given target or arguments array is null.
-