Ensure Groovy bean builder does not enforec XML validation

Since it is not parsing XML it makes no sense to be validating
and it would cause exceptions when importing "namespace"
features. This brings the Boot usage of the bean builder inline
with that in Spring Core.

Fixes gh-630
This commit is contained in:
Abhijit Sarkar 2014-04-03 00:11:40 -04:00 committed by Dave Syer
parent 4366d7880e
commit 430fb51ca4
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class BeanDefinitionLoader {
this.annotatedReader = new AnnotatedBeanDefinitionReader(registry);
this.xmlReader = new XmlBeanDefinitionReader(registry);
if (isGroovyPresent()) {
this.groovyReader = new GroovyBeanDefinitionReader(this.xmlReader);
this.groovyReader = new GroovyBeanDefinitionReader(registry);
}
this.scanner = new ClassPathBeanDefinitionScanner(registry);
this.scanner.addExcludeFilter(new ClassExcludeFilter(sources));