// use JDK dynamic proxy
InternalInvocationhandler handler = new InternalInvocationhandler();
handler.setUserIntercepter(interceptorClass.newInstance());
handler.setTargetInstance(fieldInstance);
handler.setExpectedRunTime(timeInMillis);
handler.addObserver(durationObserver);
return Proxy.newProxyInstance(classLoader, interfaces, handler);
}
private Object getCGLIBProxy(Class<? extends MethodIntercepter> interceptorClass, Long timeInMillis,
Class<?> fieldType, Object fieldInstance) throws InstantiationException, IllegalAccessException {