public class DefaultTransactionMethodProxyServiceImpl extends Object implements TransactionMethodProxyService
| 构造器和说明 |
|---|
DefaultTransactionMethodProxyServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
目标方法 结果通知
|
TransactionContext |
transactionContext() |
public TransactionHandlerService beforeTransactionHandler() throws NotFindSuitableObjectException
TransactionMethodProxyServicebeforeTransactionHandler 在接口中 TransactionMethodProxyServiceNotFindSuitableObjectExceptionpublic boolean before(TransactionHandlerService handlerService, Class<?> beanClass, Method method, Object[] args)
TransactionMethodProxyServicebefore 在接口中 TransactionMethodProxyServicehandlerService - 事件处理器beanClass - 代理方法的目标对象类型method - 被代理的方法args - 目标方法参数public Object result(TransactionHandlerService handlerService, Object result)
TransactionMethodProxyServiceresult 在接口中 TransactionMethodProxyServicehandlerService - 处理当前事务的事务处理器result - 目标方法的执行结果public Object exception(TransactionHandlerService handlerService, Throwable throwable) throws Throwable
TransactionMethodProxyServiceexception 在接口中 TransactionMethodProxyServicehandlerService - 处理当前事务的事务处理器throwable - 异常Throwablepublic void after(TransactionHandlerService handlerService)
TransactionMethodProxyServiceafter 在接口中 TransactionMethodProxyServicehandlerService - 处理当前事务的事务处理器public TransactionContext transactionContext()
Copyright © 2019. All rights reserved.