Class TransactionalConnectionInterceptor

java.lang.Object
io.micronaut.transaction.jdbc.TransactionalConnectionInterceptor
All Implemented Interfaces:
io.micronaut.aop.Interceptor<Connection,Object>, io.micronaut.aop.MethodInterceptor<Connection,Object>, io.micronaut.core.order.Ordered

@Prototype public final class TransactionalConnectionInterceptor extends Object implements io.micronaut.aop.MethodInterceptor<Connection,Object>
An interceptor that allows injecting a Connection that acts a proxy to lookup the connection for the current transaction.
Since:
1.0
Author:
graemerocher
  • Field Summary

    Fields inherited from interface io.micronaut.aop.Interceptor

    ARGUMENT, CACHEABLE_LAZY_TARGET, HOTSWAP, LAZY, PROXY_TARGET

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    intercept(io.micronaut.aop.MethodInvocationContext<Connection,Object> context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.aop.MethodInterceptor

    intercept

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Method Details

    • intercept

      public Object intercept(io.micronaut.aop.MethodInvocationContext<Connection,Object> context)
      Specified by:
      intercept in interface io.micronaut.aop.MethodInterceptor<Connection,Object>