Class RetryingTransactionInterceptor

  • All Implemented Interfaces:
    org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean

    public class RetryingTransactionInterceptor
    extends org.springframework.transaction.interceptor.TransactionAspectSupport
    implements org.aopalliance.intercept.MethodInterceptor
    Author:
    Dmitry Velichkevich
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RetryingTransactionInterceptor.WrapperException  
      • Nested classes/interfaces inherited from class org.springframework.transaction.interceptor.TransactionAspectSupport

        org.springframework.transaction.interceptor.TransactionAspectSupport.InvocationCallback, org.springframework.transaction.interceptor.TransactionAspectSupport.TransactionInfo
    • Field Summary

      • Fields inherited from class org.springframework.transaction.interceptor.TransactionAspectSupport

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(org.aopalliance.intercept.MethodInvocation invocation)  
      void setExtraExceptions​(java.util.List<java.lang.Class<?>> extraExceptions)  
      void setTransactionService​(TransactionService transactionService)  
      • Methods inherited from class org.springframework.transaction.interceptor.TransactionAspectSupport

        afterPropertiesSet, cleanupTransactionInfo, clearTransactionManagerCache, commitTransactionAfterReturning, completeTransactionAfterThrowing, createTransactionIfNecessary, currentTransactionInfo, currentTransactionStatus, determineTransactionManager, getBeanFactory, getTransactionAttributeSource, getTransactionManager, getTransactionManagerBeanName, invokeWithinTransaction, methodIdentification, prepareTransactionInfo, setBeanFactory, setTransactionAttributes, setTransactionAttributeSource, setTransactionAttributeSources, setTransactionManager, setTransactionManagerBeanName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RetryingTransactionInterceptor

        public RetryingTransactionInterceptor()
    • Method Detail

      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
      • setExtraExceptions

        public void setExtraExceptions​(java.util.List<java.lang.Class<?>> extraExceptions)
      • invoke

        public java.lang.Object invoke​(org.aopalliance.intercept.MethodInvocation invocation)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface org.aopalliance.intercept.MethodInterceptor
        Throws:
        java.lang.Throwable