- All Implemented Interfaces:
io.micronaut.aop.Interceptor<com.mongodb.client.ClientSession,java.lang.Object>
, io.micronaut.aop.MethodInterceptor<com.mongodb.client.ClientSession,java.lang.Object>
, io.micronaut.core.order.Ordered
@Requires(classes=com.mongodb.client.ClientSession.class,
beans=MongoSynchronousTransactionManagerImpl.class)
@Prototype
public final class TransactionalClientSessionInterceptor
extends java.lang.Object
implements io.micronaut.aop.MethodInterceptor<com.mongodb.client.ClientSession,java.lang.Object>
An interceptor that allows injecting a ClientSession
that acts a proxy to lookup the connection for the current transaction.
- Since:
- 3.3
- Author:
- Denis Stepanov