sunrui1225 commented on code in PR #5399:
URL: https://github.com/apache/incubator-seata/pull/5399#discussion_r1435475039
##########
tcc/src/main/java/io/seata/rm/tcc/interceptor/parser/TccActionInterceptorParser.java:
##########
@@ -15,62 +15,60 @@
*/
package io.seata.rm.tcc.interceptor.parser;
+import java.lang.reflect.Method;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Set;
+
import io.seata.common.util.ReflectionUtil;
-import io.seata.integration.tx.api.interceptor.TxBeanParserUtils;
import io.seata.integration.tx.api.interceptor.handler.ProxyInvocationHandler;
import
io.seata.integration.tx.api.interceptor.parser.DefaultResourceRegisterParser;
+import io.seata.integration.tx.api.interceptor.parser.IfNeedEnhanceBean;
import io.seata.integration.tx.api.interceptor.parser.InterfaceParser;
-import io.seata.integration.tx.api.remoting.RemotingDesc;
+import io.seata.integration.tx.api.interceptor.parser.NeedEnhanceEnum;
import io.seata.integration.tx.api.remoting.parser.DefaultRemotingParser;
import io.seata.rm.tcc.api.TwoPhaseBusinessAction;
import io.seata.rm.tcc.interceptor.TccActionInterceptorHandler;
-import java.lang.reflect.Method;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.Set;
-
/**
* @author leezongjie
*/
public class TccActionInterceptorParser implements InterfaceParser {
@Override
public ProxyInvocationHandler parserInterfaceToProxy(Object target, String
objectName) {
- boolean isTxRemotingBean = TxBeanParserUtils.isTxRemotingBean(target,
objectName);
Review Comment:
add warn log : Only the methods of classes with two phase annotations can be
proxied by Tcc interceptor!!! The target({})'s methods must be with
@TwoPhaseBusinessAction annotation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]