You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by he...@apache.org on 2020/05/08 20:17:37 UTC

[dubbo] branch revert_5710 created (now 92a9d88)

This is an automated email from the ASF dual-hosted git repository.

hengyunabc pushed a change to branch revert_5710
in repository https://gitbox.apache.org/repos/asf/dubbo.git.


      at 92a9d88  revert #5710

This branch includes the following new commits:

     new 92a9d88  revert #5710

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[dubbo] 01/01: revert #5710

Posted by he...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hengyunabc pushed a commit to branch revert_5710
in repository https://gitbox.apache.org/repos/asf/dubbo.git

commit 92a9d88ab682e4a1585c101cc56c8031259f929d
Author: hengyunabc <he...@gmail.com>
AuthorDate: Sat May 9 04:16:43 2020 +0800

    revert #5710
---
 .../dubbo/config/spring/schema/DubboBeanDefinitionParser.java     | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/schema/DubboBeanDefinitionParser.java b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/schema/DubboBeanDefinitionParser.java
index 5a849ff..31b299a 100644
--- a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/schema/DubboBeanDefinitionParser.java
+++ b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/schema/DubboBeanDefinitionParser.java
@@ -130,13 +130,7 @@ public class DubboBeanDefinitionParser implements BeanDefinitionParser {
                 parseProperties(element.getChildNodes(), classDefinition, parserContext);
                 beanDefinition.getPropertyValues().addPropertyValue("ref", new BeanDefinitionHolder(classDefinition, id + "Impl"));
             }
-        } else if (ReferenceBean.class.equals(beanClass)) {
-            String interfaceClassName = resolveAttribute(element, "interface", parserContext);
-            if (StringUtils.isNotEmpty(interfaceClassName)) {
-                Class<?> interfaceClass = ReflectUtils.forName(interfaceClassName);
-                beanDefinition.setTargetType(interfaceClass);
-            }
-        } else if (ProviderConfig.class.equals(beanClass)) {
+        }  else if (ProviderConfig.class.equals(beanClass)) {
             parseNested(element, parserContext, ServiceBean.class, true, "service", "provider", id, beanDefinition);
         } else if (ConsumerConfig.class.equals(beanClass)) {
             parseNested(element, parserContext, ReferenceBean.class, false, "reference", "consumer", id, beanDefinition);