Package io.micronaut.transaction.jdbc
Class TransactionalConnectionInterceptor
- java.lang.Object
-
- io.micronaut.transaction.jdbc.TransactionalConnectionInterceptor
-
- All Implemented Interfaces:
io.micronaut.aop.Interceptor<java.sql.Connection,java.lang.Object>
,io.micronaut.aop.MethodInterceptor<java.sql.Connection,java.lang.Object>
,io.micronaut.core.order.Ordered
@Prototype public final class TransactionalConnectionInterceptor extends java.lang.Object implements io.micronaut.aop.MethodInterceptor<java.sql.Connection,java.lang.Object>
An interceptor that allows injecting aConnection
that acts a proxy to lookup the connection for the current transaction.- Since:
- 1.0
- Author:
- graemerocher
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
intercept(io.micronaut.aop.MethodInvocationContext<java.sql.Connection,java.lang.Object> context)
-