Class HandlerInvoker

java.lang.Object
org.miaixz.bus.proxy.invoker.HandlerInvoker
All Implemented Interfaces:
Invoker

public class HandlerInvoker extends Object implements Invoker
适配器类,将JDK的InvocationHandler接口调整为Commons Proxy的Invoker接口
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

  • Method Details

    • invoke

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