@Retention(value=RUNTIME) @Target(value={PARAMETER,FIELD}) public @interface BusinessActionContextParameter
add this annotation on the parameters of the try method, and the parameters will be passed to the action context
ActionContextUtil| 限定符和类型 | 可选元素和说明 |
|---|---|
int |
index
Specify the index of the parameter in the List
|
boolean |
isParamInProperty
whether get the parameter from the property of the object
if
index >= 0, the object get from the List and then do get the parameter from the property of the object |
boolean |
isShardingParam
已过时。
This property is no longer in use.
|
String |
paramName
parameter's name.
|
String |
value
parameter's name.
|
public abstract String value
paramName().ActionContextUtil.getParamNameFromAnnotation(io.seata.rm.tcc.api.BusinessActionContextParameter)public abstract String paramName
value().ActionContextUtil.getParamNameFromAnnotation(io.seata.rm.tcc.api.BusinessActionContextParameter)@Deprecated public abstract boolean isShardingParam
public abstract int index
ActionContextUtil.getByIndex(io.seata.rm.tcc.api.ParamType, java.lang.String, java.lang.Object, int)public abstract boolean isParamInProperty
index >= 0, the object get from the List and then do get the parameter from the property of the objectActionContextUtil.loadParamByAnnotationAndPutToContext(io.seata.rm.tcc.api.ParamType, java.lang.String, java.lang.Object, io.seata.rm.tcc.api.BusinessActionContextParameter, java.util.Map<java.lang.String, java.lang.Object>),
ActionContextUtil.fetchContextFromObject(java.lang.Object)Copyright © 2022 Seata. All rights reserved.