提交 61196f1a 编写于 作者: W william.liangf

DUBBO-149 <dubbo:protocol未配name时,生成的缺省id也应为dubbo,便于-D参数覆盖

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@697 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 9cad0201
......@@ -74,8 +74,12 @@ public class DubboBeanDefinitionParser implements BeanDefinitionParser {
String id = element.getAttribute("id");
if ((id == null || id.length() == 0) && required) {
String generatedBeanName = element.getAttribute("name");
if (generatedBeanName == null || generatedBeanName.length() == 0) {
generatedBeanName = element.getAttribute("interface");
if (generatedBeanName == null || generatedBeanName.length() == 0) {
if (ProtocolConfig.class.equals(beanClass)) {
generatedBeanName = "dubbo";
} else {
generatedBeanName = element.getAttribute("interface");
}
}
if (generatedBeanName == null || generatedBeanName.length() == 0) {
generatedBeanName = beanClass.getName();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册