Examples of afterCompletion()


Examples of org.springframework.transaction.support.TransactionSynchronization.afterCompletion()

      assertEquals(1, synchs.size());
      TransactionSynchronization synch = (TransactionSynchronization) synchs.get(0);
      synch.beforeCommit(false);
      synch.beforeCompletion();
      synch.afterCommit();
      synch.afterCompletion(TransactionSynchronization.STATUS_UNKNOWN);
    }
    finally {
      TransactionSynchronizationManager.clearSynchronization();
      scf.destroy();
    }
View Full Code Here

Examples of org.springframework.transaction.support.TransactionSynchronization.afterCompletion()

    synchControl.setVoidCallable(1);
    synch.beforeCompletion();
    synchControl.setVoidCallable(1);
    synch.afterCommit();
    synchControl.setVoidCallable(1);
    synch.afterCompletion(TransactionSynchronization.STATUS_COMMITTED);
    synchControl.setVoidCallable(1);
    synchControl.replay();

    JtaTransactionManager ptm = newJtaTransactionManager(ut);
    TransactionTemplate tt = new TransactionTemplate(ptm);
View Full Code Here

Examples of org.springframework.transaction.support.TransactionSynchronization.afterCompletion()

    synchControl.setVoidCallable(1);
    synch.beforeCompletion();
    synchControl.setVoidCallable(1);
    synch.afterCommit();
    synchControl.setVoidCallable(1);
    synch.afterCompletion(TransactionSynchronization.STATUS_COMMITTED);
    synchControl.setVoidCallable(1);
    synchControl.replay();

    JtaTransactionManager ptm = newJtaTransactionManager(ut);
    TransactionTemplate tt = new TransactionTemplate(ptm);
View Full Code Here

Examples of org.springframework.web.servlet.HandlerInterceptor.afterCompletion()

      HandlerInterceptor[] interceptors = mappedHandler.getInterceptors();
      if (interceptors != null) {
        for (int i = interceptorIndex; i >= 0; i--) {
          HandlerInterceptor interceptor = interceptors[i];
          try {
            interceptor.afterCompletion(request, response, mappedHandler.getHandler(), ex);
          }
          catch (Throwable ex2) {
            logger.error("HandlerInterceptor.afterCompletion threw exception", ex2);
          }
        }
View Full Code Here

Examples of org.springframework.web.servlet.HandlerInterceptor.afterCompletion()

    // check that further invocations simply participate
    interceptor.preHandle(request, response, "handler");

    interceptor.preHandle(request, response, "handler");
    interceptor.postHandle(request, response, "handler", null);
    interceptor.afterCompletion(request, response, "handler", null);

    interceptor.postHandle(request, response, "handler", null);
    interceptor.afterCompletion(request, response, "handler", null);

    interceptor.preHandle(request, response, "handler");
View Full Code Here

Examples of org.springframework.web.servlet.HandlerInterceptor.afterCompletion()

    interceptor.preHandle(request, response, "handler");
    interceptor.postHandle(request, response, "handler", null);
    interceptor.afterCompletion(request, response, "handler", null);

    interceptor.postHandle(request, response, "handler", null);
    interceptor.afterCompletion(request, response, "handler", null);

    interceptor.preHandle(request, response, "handler");
    interceptor.postHandle(request, response, "handler", null);
    interceptor.afterCompletion(request, response, "handler", null);
   
View Full Code Here

Examples of org.springframework.web.servlet.HandlerInterceptor.afterCompletion()

    interceptor.postHandle(request, response, "handler", null);
    interceptor.afterCompletion(request, response, "handler", null);

    interceptor.preHandle(request, response, "handler");
    interceptor.postHandle(request, response, "handler", null);
    interceptor.afterCompletion(request, response, "handler", null);
   
    factoryControl.verify();
    managerControl.verify();
   
    managerControl.reset();
View Full Code Here

Examples of org.springframework.web.servlet.HandlerInterceptor.afterCompletion()

    manager.close();
   
    managerControl.replay();
    factoryControl.replay();
   
    interceptor.afterCompletion(request, response, "handler", null);
    assertFalse(TransactionSynchronizationManager.hasResource(factory));
   
    factoryControl.verify();
    managerControl.verify();
  }
View Full Code Here

Examples of org.springframework.web.servlet.handler.WebRequestHandlerInterceptorAdapter.afterCompletion()

    // check that further invocations simply participate
    interceptor.preHandle(request, response, "handler");

    interceptor.preHandle(request, response, "handler");
    interceptor.postHandle(request, response, "handler", null);
    interceptor.afterCompletion(request, response, "handler", null);

    interceptor.postHandle(request, response, "handler", null);
    interceptor.afterCompletion(request, response, "handler", null);

    interceptor.preHandle(request, response, "handler");
View Full Code Here

Examples of org.springframework.web.servlet.handler.WebRequestHandlerInterceptorAdapter.afterCompletion()

    interceptor.preHandle(request, response, "handler");
    interceptor.postHandle(request, response, "handler", null);
    interceptor.afterCompletion(request, response, "handler", null);

    interceptor.postHandle(request, response, "handler", null);
    interceptor.afterCompletion(request, response, "handler", null);

    interceptor.preHandle(request, response, "handler");
    interceptor.postHandle(request, response, "handler", null);
    interceptor.afterCompletion(request, response, "handler", null);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.