Skip to content

Commit

Permalink
revert apache#5710
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed May 11, 2020
1 parent 343f92d commit 911bfa1
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,7 @@ private static BeanDefinition parse(Element element, ParserContext parserContext
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);
Expand Down

0 comments on commit 911bfa1

Please sign in to comment.