提交 98efbb39 编写于 作者: W william.liangf

DUBBO-142 在invocatoin中增加interface参数,不从channel获取接口信息。

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@681 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 6d64181e
......@@ -171,6 +171,9 @@ public class DubboCodec extends ExchangeCodec implements Codec {
try {
if (channel != null && invocation != null) {
String service = invocation.getAttachment(Constants.INTERFACE_KEY);
if (service == null || service.length() == 0) {
service = invocation.getAttachment(Constants.PATH_KEY);
}
if (service != null && service.length() > 0) {
Class<?> cls = ReflectUtils.forName(service);
Method method = cls.getMethod(invocation.getMethodName(), invocation.getParameterTypes());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册