Package ru.vyarus.guicey.jdbi3.tx.aop
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 Summary
ConstructorsConstructorDescriptionTransactionalInterceptor(List<Class<? extends Annotation>> txAnnotations) Create a transactional interceptor. -
Method Summary
-
Constructor Details
-
TransactionalInterceptor
Create a transactional interceptor.- Parameters:
txAnnotations- transactional annotations
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-