return (method.getReturnType().equals(Void.TYPE));
}
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
MethodHandler methodHandler = null;
Object result = null;
long start = 0;
boolean success = false;
methodHandler = HandlerFactory.getMethodHandler(className, method);
try {
methodHandler.onMethodStart(target);
start = System.currentTimeMillis();
result = doInvoke(method, args);
success = true;
methodHandler.onMethodFinish(target, System.currentTimeMillis() - start, null);
return result;
} catch (Throwable throwable) {
methodHandler.onMethodFinish(target, System.currentTimeMillis() - start, throwable);
throw throwable;
}
}