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.

@FunctionalInterface public interface MethodInvoker
A method invoker used by RPC to invoke a requested method.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    callMethod(@NonNull Object target, @NonNull Object... arguments)
    Invokes the target method of this invoker using the given arguments on the given instance.
  • Method Details

    • callMethod

      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.