@Singleton
public class TransactionInterceptor
extends org.springframework.transaction.interceptor.TransactionAspectSupport
implements io.micronaut.aop.MethodInterceptor<java.lang.Object,java.lang.Object>
Transactional
.Constructor and Description |
---|
TransactionInterceptor(io.micronaut.context.BeanLocator beanLocator) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
int |
getOrder() |
java.lang.Object |
intercept(io.micronaut.aop.MethodInvocationContext<java.lang.Object,java.lang.Object> context) |
protected org.springframework.transaction.interceptor.TransactionAttribute |
resolveTransactionAttribute(io.micronaut.inject.ExecutableMethod<java.lang.Object,java.lang.Object> targetMethod,
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata,
java.lang.String transactionManagerName) |
cleanupTransactionInfo, clearTransactionManagerCache, commitTransactionAfterReturning, completeTransactionAfterThrowing, createTransactionIfNecessary, currentTransactionInfo, currentTransactionStatus, determineTransactionManager, getBeanFactory, getTransactionAttributeSource, getTransactionManager, getTransactionManagerBeanName, invokeWithinTransaction, methodIdentification, prepareTransactionInfo, setBeanFactory, setTransactionAttributes, setTransactionAttributeSource, setTransactionAttributeSources, setTransactionManager, setTransactionManagerBeanName
public TransactionInterceptor(io.micronaut.context.BeanLocator beanLocator)
beanLocator
- The BeanLocator
public int getOrder()
getOrder
in interface io.micronaut.core.order.Ordered
public final java.lang.Object intercept(io.micronaut.aop.MethodInvocationContext<java.lang.Object,java.lang.Object> context)
intercept
in interface io.micronaut.aop.MethodInterceptor<java.lang.Object,java.lang.Object>
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.transaction.interceptor.TransactionAspectSupport
protected org.springframework.transaction.interceptor.TransactionAttribute resolveTransactionAttribute(io.micronaut.inject.ExecutableMethod<java.lang.Object,java.lang.Object> targetMethod, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, java.lang.String transactionManagerName)
targetMethod
- The target methodannotationMetadata
- The annotation metadatatransactionManagerName
- The transaction managerTransactionAttribute