@Singleton public class TransactionInterceptor extends Object implements MethodInterceptor<Object,Object>
Transactional.HOTSWAP, LAZY, PROXY_TARGETHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
TransactionInterceptor(BeanLocator beanLocator) |
| Modifier and Type | Method and Description |
|---|---|
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) |
clone, 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 contextprotected org.springframework.transaction.interceptor.TransactionAttribute resolveTransactionAttribute(ExecutableMethod<Object,Object> targetMethod, AnnotationMetadata annotationMetadata, String transactionManagerName)
targetMethod - The target methodannotationMetadata - The annotation metadatatransactionManagerName - The transaction managerTransactionAttribute