- protected abstract static class Interceptor implements MethodInterceptor {
- public Interceptor()
- {
- super();
- }
- //methods that should support its working:
- //handles exceptions that has been caught
- protected Object handleException(TestObject testObject, Method originalMethod, MethodProxy methodProxy, Object[] args, Throwable t) throws Throwable
- {
- return testObject.exceptionHandler.handleException(testObject, originalMethod, methodProxy, args, t);
- }
- @Override
- public abstract Object intercept(Object arg0, Method arg1, Object[] arg2, MethodProxy arg3) throws Throwable;
- }