public class LocalTransactionHandler extends AbstractTransactionHandlerService
transactionExecutorService| 构造器和说明 |
|---|
LocalTransactionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
beforeHandler(Class<?> beanClass,
Method method,
Object[] args)
事务方法执行前执行的处理器方法
|
String |
componentName()
组件名称
|
Object |
exceptionHandler(Throwable throwable)
事务方法执行过程中发送例外情况对应的处理器执行的方法
|
boolean |
support(TransactionContext context)
该处理器是否支持处理该事务
|
afterInitializationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterHandler, resultHandlerorderpublic boolean support(TransactionContext context)
TransactionSupportServicecontext - 泛型由实现者决定public boolean beforeHandler(Class<?> beanClass, Method method, Object[] args)
TransactionHandlerServicebeanClass - 代理方法的目标对象类型method - 代理事务方法args - 代理事务方法参数public Object exceptionHandler(Throwable throwable) throws Throwable
TransactionHandlerServicethrowable - 异常Throwablepublic String componentName()
ComponentServiceCopyright © 2019. All rights reserved.