提交 3ac66be3 编写于 作者: W william.liangf

DUBBO-94 同理ServiceConfig的getInterfaceClass()也和ReferenceConfig一样修改

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@476 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 939243c9
......@@ -459,7 +459,21 @@ public class ServiceConfig<T> extends AbstractServiceConfig {
}
public Class<?> getInterfaceClass() {
return interfaceClass == null ? GenericService.class : interfaceClass;
if (interfaceClass != null) {
return interfaceClass;
}
if (ref instanceof GenericService) {
return GenericService.class;
}
try {
if (interfaceName != null && interfaceName.length() > 0) {
this.interfaceClass = Class.forName(interfaceName, true, Thread.currentThread()
.getContextClassLoader());
}
} catch (ClassNotFoundException t) {
throw new IllegalStateException(t.getMessage(), t);
}
return interfaceClass;
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册