Browse Source

Remove code for parsing mvc:formatters (SPR-7732)

pull/7/head
Rossen Stoyanchev 14 years ago
parent
commit
93de9622fc
  1. 12
      org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java

12
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java

@ -183,18 +183,6 @@ class AnnotationDrivenBeanDefinitionParser implements BeanDefinitionParser { @@ -183,18 +183,6 @@ class AnnotationDrivenBeanDefinitionParser implements BeanDefinitionParser {
parserContext.registerComponent(new BeanComponentDefinition(conversionDef, conversionName));
conversionServiceRef = new RuntimeBeanReference(conversionName);
}
Element formattersElement = DomUtils.getChildElementByTagName(element, "formatters");
if (formattersElement != null) {
ManagedList<BeanDefinitionHolder> formatters = new ManagedList<BeanDefinitionHolder>();
formatters.setSource(source);
for (Element formatter : DomUtils.getChildElementsByTagName(formattersElement, "bean")) {
BeanDefinitionHolder beanDef = parserContext.getDelegate().parseBeanDefinitionElement(formatter);
beanDef = parserContext.getDelegate().decorateBeanDefinitionIfRequired(formatter, beanDef);
formatters.add(beanDef);
}
BeanDefinition beanDef = parserContext.getRegistry().getBeanDefinition(conversionServiceRef.getBeanName());
beanDef.getPropertyValues().add("formatters", formatters);
}
return conversionServiceRef;
}

Loading…
Cancel
Save