@Singleton public class TransactionInterceptor extends org.springframework.transaction.interceptor.TransactionAspectSupport implements MethodInterceptor<Object,Object>
Transactional
.logger
HOTSWAP, LAZY, PROXY_TARGET
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
TransactionInterceptor(BeanLocator beanLocator) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
Object |
intercept(MethodInvocationContext<Object,Object> context)
Extended version of the
MethodInterceptor.intercept(InvocationContext) method that accepts a MethodInvocationContext . |
protected org.springframework.transaction.interceptor.TransactionAttribute |
resolveTransactionAttribute(ExecutableMethod<Object,Object> targetMethod,
AnnotationMetadata annotationMetadata,
String transactionManagerName) |
cleanupTransactionInfo, clearTransactionManagerCache, commitTransactionAfterReturning, completeTransactionAfterThrowing, createTransactionIfNecessary, currentTransactionInfo, currentTransactionStatus, determineTransactionManager, getBeanFactory, getTransactionAttributeSource, getTransactionManager, getTransactionManagerBeanName, invokeWithinTransaction, methodIdentification, prepareTransactionInfo, setBeanFactory, setTransactionAttributes, setTransactionAttributeSource, setTransactionAttributeSources, setTransactionManager, setTransactionManagerBeanName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
intercept
public TransactionInterceptor(BeanLocator beanLocator)
beanLocator
- The BeanLocator
public final Object intercept(MethodInvocationContext<Object,Object> context)
MethodInterceptor
MethodInterceptor.intercept(InvocationContext)
method that accepts a MethodInvocationContext
.intercept
in interface MethodInterceptor<Object,Object>
context
- The contextpublic 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(ExecutableMethod<Object,Object> targetMethod, AnnotationMetadata annotationMetadata, String transactionManagerName)
targetMethod
- The target methodannotationMetadata
- The annotation metadatatransactionManagerName
- The transaction managerTransactionAttribute