@Override public Object intercept(Object arg0, Method arg1, Object[] arg2, MethodProxy arg3) throws Throwable { String v = real.heavyMethod((Integer) arg2[0]); return v; }
public static void main(String args[]) { DynProxy dp = newHeavyMethod(); for (int i = 0; i < 100; i++) dp.heavyMethod(214748); }