@Singleton public class TransactionInterceptor extends org.springframework.transaction.interceptor.TransactionAspectSupport implements MethodInterceptor<Object,Object>
Transactional.loggerHOTSWAP, LAZY, PROXY_TARGETHIGHEST_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, setTransactionManagerBeanNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinterceptpublic TransactionInterceptor(BeanLocator beanLocator)
beanLocator - The BeanLocatorpublic final Object intercept(MethodInvocationContext<Object,Object> context)
MethodInterceptorMethodInterceptor.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.InitializingBeanafterPropertiesSet in class org.springframework.transaction.interceptor.TransactionAspectSupportprotected org.springframework.transaction.interceptor.TransactionAttribute resolveTransactionAttribute(ExecutableMethod<Object,Object> targetMethod, AnnotationMetadata annotationMetadata, String transactionManagerName)
targetMethod - The target methodannotationMetadata - The annotation metadatatransactionManagerName - The transaction managerTransactionAttribute