资 源 简 介
public class HandlerDemo implements InvocationHandler {private Object proxied; public HandlerDemo(Object proxied) { this.proxied = proxied; }@Overridepublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Object obj = method.invoke(proxied, args); System.out.println("Method -> " + method.getName() ); System.out.println(obj); return obj;}}