1. protected abstract static class Interceptor implements MethodInterceptor {
  2. public Interceptor()
  3. {
  4. super();
  5. }
  6. //methods that should support its working:
  7. //handles exceptions that has been caught
  8. protected Object handleException(TestObject testObject, Method originalMethod, MethodProxy methodProxy, Object[] args, Throwable t) throws Throwable
  9. {
  10. return testObject.exceptionHandler.handleException(testObject, originalMethod, methodProxy, args, t);
  11. }
  12. @Override
  13. public abstract Object intercept(Object arg0, Method arg1, Object[] arg2, MethodProxy arg3) throws Throwable;
  14. }