|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2017 the original author or authors. |
|
|
|
* Copyright 2002-2023 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -20,6 +20,7 @@ import java.io.IOException; |
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.BeansException; |
|
|
|
import org.springframework.beans.BeansException; |
|
|
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory; |
|
|
|
import org.springframework.beans.factory.support.DefaultListableBeanFactory; |
|
|
|
|
|
|
|
import org.springframework.beans.factory.xml.BeanDefinitionDocumentReader; |
|
|
|
import org.springframework.beans.factory.xml.ResourceEntityResolver; |
|
|
|
import org.springframework.beans.factory.xml.ResourceEntityResolver; |
|
|
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; |
|
|
|
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; |
|
|
|
import org.springframework.context.ApplicationContext; |
|
|
|
import org.springframework.context.ApplicationContext; |
|
|
|
@ -95,12 +96,13 @@ public abstract class AbstractXmlApplicationContext extends AbstractRefreshableC |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Initialize the bean definition reader used for loading the bean |
|
|
|
* Initialize the bean definition reader used for loading the bean definitions |
|
|
|
* definitions of this context. Default implementation is empty. |
|
|
|
* of this context. The default implementation sets the validating flag. |
|
|
|
* <p>Can be overridden in subclasses, e.g. for turning off XML validation |
|
|
|
* <p>Can be overridden in subclasses, e.g. for turning off XML validation |
|
|
|
* or using a different XmlBeanDefinitionParser implementation. |
|
|
|
* or using a different {@link BeanDefinitionDocumentReader} implementation. |
|
|
|
* @param reader the bean definition reader used by this context |
|
|
|
* @param reader the bean definition reader used by this context |
|
|
|
* @see org.springframework.beans.factory.xml.XmlBeanDefinitionReader#setDocumentReaderClass |
|
|
|
* @see XmlBeanDefinitionReader#setValidating |
|
|
|
|
|
|
|
* @see XmlBeanDefinitionReader#setDocumentReaderClass |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected void initBeanDefinitionReader(XmlBeanDefinitionReader reader) { |
|
|
|
protected void initBeanDefinitionReader(XmlBeanDefinitionReader reader) { |
|
|
|
reader.setValidating(this.validating); |
|
|
|
reader.setValidating(this.validating); |
|
|
|
|