package com.jiuqi.mobile.core.service.base.test; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; public class LogProxy implements InvocationHandler { Object obj; public LogProxy(Object o) { obj = o; } // InvocationHandler implementation ------------------------------ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { System.out.println("Invoke LogProxy"); return method.invoke(obj, args); } }