Interface Invoker

All Known Implementing Classes:
DuckInvoker, HandlerInvoker, NullInvoker

public interface Invoker
调用程序负责处理方法调用
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    invoke(Object proxy, Method method, Object[] arguments)
    调用方法 如果在尝试调用方法时出现问题,实现应该抛出异常
  • Method Details

    • invoke

      Object invoke(Object proxy, Method method, Object[] arguments) throws Throwable
      调用方法 如果在尝试调用方法时出现问题,实现应该抛出异常
      Parameters:
      proxy - 代理对象
      method - 被调用的方法
      arguments - 参数
      Returns:
      返回值
      Throws:
      Throwable - 抛出异常