public interface TransactionMethodProxyService
| 限定符和类型 | 方法和说明 |
|---|---|
void |
after(TransactionHandlerService handlerService)
目标方法 后置通知
|
boolean |
before(TransactionHandlerService handlerService,
Class<?> beanClass,
Method method,
Object[] args)
目标方法 前置通知
|
TransactionHandlerService |
beforeTransactionHandler()
在事务处理程序之前使用,获取事务处理器对象
|
Object |
exception(TransactionHandlerService handlerService,
Throwable throwable)
目标方法 异常通知
|
Object |
result(TransactionHandlerService handlerService,
Object result)
目标方法 结果通知
|
TransactionHandlerService beforeTransactionHandler() throws NotFindSuitableObjectException
NotFindSuitableObjectExceptionboolean before(TransactionHandlerService handlerService, Class<?> beanClass, Method method, Object[] args)
handlerService - 事件处理器beanClass - 代理方法的目标对象类型method - 被代理的方法args - 目标方法参数Object result(TransactionHandlerService handlerService, Object result)
handlerService - 处理当前事务的事务处理器result - 目标方法的执行结果Object exception(TransactionHandlerService handlerService, Throwable throwable) throws Throwable
handlerService - 处理当前事务的事务处理器throwable - 异常Throwablevoid after(TransactionHandlerService handlerService)
handlerService - 处理当前事务的事务处理器Copyright © 2019. All rights reserved.