@Singleton public class TransactionInterceptor extends TransactionAspectSupport implements MethodInterceptor<java.lang.Object,java.lang.Object>
Transactional
.TransactionAspectSupport.InvocationCallback, TransactionAspectSupport.TransactionInfo
logger
HOTSWAP, LAZY, PROXY_TARGET
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
TransactionInterceptor(BeanLocator beanLocator) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
java.lang.Object |
intercept(MethodInvocationContext<java.lang.Object,java.lang.Object> context) |
protected TransactionAttribute |
resolveTransactionAttribute(ExecutableMethod<java.lang.Object,java.lang.Object> targetMethod,
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
intercept
public TransactionInterceptor(BeanLocator beanLocator)
beanLocator
- The BeanLocator
public final java.lang.Object intercept(MethodInvocationContext<java.lang.Object,java.lang.Object> context)
intercept
in interface MethodInterceptor<java.lang.Object,java.lang.Object>
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class TransactionAspectSupport
protected TransactionAttribute resolveTransactionAttribute(ExecutableMethod<java.lang.Object,java.lang.Object> targetMethod, AnnotationMetadata annotationMetadata, java.lang.String transactionManagerName)
targetMethod
- The target methodannotationMetadata
- The annotation metadatatransactionManagerName
- The transaction managerTransactionAttribute