|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2014 the original author or authors. |
|
|
|
|
* Copyright 2002-2015 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -32,22 +32,21 @@ import org.springframework.beans.factory.BeanDefinitionStoreException;
@@ -32,22 +32,21 @@ import org.springframework.beans.factory.BeanDefinitionStoreException;
|
|
|
|
|
import org.springframework.beans.factory.config.BeanDefinitionHolder; |
|
|
|
|
import org.springframework.beans.factory.parsing.BeanComponentDefinition; |
|
|
|
|
import org.springframework.beans.factory.support.BeanDefinitionReaderUtils; |
|
|
|
|
import org.springframework.core.env.Environment; |
|
|
|
|
import org.springframework.core.io.Resource; |
|
|
|
|
import org.springframework.core.io.support.ResourcePatternUtils; |
|
|
|
|
import org.springframework.util.ResourceUtils; |
|
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Default implementation of the {@link BeanDefinitionDocumentReader} interface. |
|
|
|
|
* Reads bean definitions according to the "spring-beans" DTD and XSD format |
|
|
|
|
* Default implementation of the {@link BeanDefinitionDocumentReader} interface that |
|
|
|
|
* reads bean definitions according to the "spring-beans" DTD and XSD format |
|
|
|
|
* (Spring's default XML bean definition format). |
|
|
|
|
* |
|
|
|
|
* <p>The structure, elements and attribute names of the required XML document |
|
|
|
|
* <p>The structure, elements, and attribute names of the required XML document |
|
|
|
|
* are hard-coded in this class. (Of course a transform could be run if necessary |
|
|
|
|
* to produce this format). {@code <beans>} doesn't need to be the root |
|
|
|
|
* element of the XML document: This class will parse all bean definition elements |
|
|
|
|
* in the XML file, not regarding the actual root element. |
|
|
|
|
* to produce this format). {@code <beans>} does not need to be the root |
|
|
|
|
* element of the XML document: this class will parse all bean definition elements |
|
|
|
|
* in the XML file, regardless of the actual root element. |
|
|
|
|
* |
|
|
|
|
* @author Rod Johnson |
|
|
|
|
* @author Juergen Hoeller |
|
|
|
|