Class TransactionalInterceptor

java.lang.Object
ru.vyarus.guicey.jdbi3.tx.aop.TransactionalInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class TransactionalInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor
Intercept transaction annotations usage and applies TransactionTemplate around method call. Transaction config could be obtained from annotation, if it supports it.
Since:
31.08.2018
  • Constructor Details

    • TransactionalInterceptor

      public TransactionalInterceptor(List<Class<? extends Annotation>> txAnnotations)
      Create a transactional interceptor.
      Parameters:
      txAnnotations - transactional annotations
  • Method Details

    • invoke

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