public class ActionInterceptorHandler extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private static com.jfinal.log.Log |
LOGGER |
| 构造器和说明 |
|---|
ActionInterceptorHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
doTccActionLogStore(Method method,
Parameter[] parameters,
Object[] arguments,
io.seata.rm.tcc.api.TwoPhaseBusinessAction businessAction,
io.seata.rm.tcc.api.BusinessActionContext actionContext)
Creating Branch Record
|
protected Map<String,Object> |
fetchActionRequestContext(Method method,
Object[] arguments,
Parameter[] parameters)
Extracting context data from parameters, add them to the context
|
protected String[] |
getTwoPhaseArgs(Method method,
Class<?>[] argsClasses) |
protected void |
initBusinessContext(Map<String,Object> context,
Method method,
io.seata.rm.tcc.api.TwoPhaseBusinessAction businessAction)
Init business context
|
protected void |
initFrameworkContext(Map<String,Object> context)
Init running environment context
|
void |
proceed(Method method,
Object[] arguments,
String xid,
io.seata.rm.tcc.api.TwoPhaseBusinessAction businessAction,
com.jfinal.aop.Invocation invocation)
Handler the TCC Aspect
|
void |
registryResource(Method m,
Object interfaceClass,
Class[] arguments,
io.seata.rm.tcc.api.TwoPhaseBusinessAction businessAction) |
private static final com.jfinal.log.Log LOGGER
public ActionInterceptorHandler()
public void proceed(Method method, Object[] arguments, String xid, io.seata.rm.tcc.api.TwoPhaseBusinessAction businessAction, com.jfinal.aop.Invocation invocation)
method - the methodarguments - the argumentsbusinessAction - the business actionprotected String doTccActionLogStore(Method method, Parameter[] parameters, Object[] arguments, io.seata.rm.tcc.api.TwoPhaseBusinessAction businessAction, io.seata.rm.tcc.api.BusinessActionContext actionContext)
method - the methodarguments - the argumentsbusinessAction - the business actionactionContext - the action contextprotected void initFrameworkContext(Map<String,Object> context)
context - the contextprotected void initBusinessContext(Map<String,Object> context, Method method, io.seata.rm.tcc.api.TwoPhaseBusinessAction businessAction)
context - the contextmethod - the methodbusinessAction - the business actionprotected Map<String,Object> fetchActionRequestContext(Method method, Object[] arguments, Parameter[] parameters)
method - the methodarguments - the argumentspublic void registryResource(Method m, Object interfaceClass, Class[] arguments, io.seata.rm.tcc.api.TwoPhaseBusinessAction businessAction) throws NoSuchMethodException
protected String[] getTwoPhaseArgs(Method method, Class<?>[] argsClasses)
Copyright © 2024. All rights reserved.