|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2017 the original author or authors. |
|
|
|
* Copyright 2002-2018 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. |
|
|
|
@ -431,11 +431,12 @@ public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Get the validation mode for the specified {@link Resource}. If no explicit |
|
|
|
* Determine the validation mode for the specified {@link Resource}. |
|
|
|
* validation mode has been configured then the validation mode is |
|
|
|
* If no explicit validation mode has been configured, then the validation |
|
|
|
* {@link #detectValidationMode detected}. |
|
|
|
* mode gets {@link #detectValidationMode detected} from the given resource. |
|
|
|
* <p>Override this method if you would like full control over the validation |
|
|
|
* <p>Override this method if you would like full control over the validation |
|
|
|
* mode, even when something other than {@link #VALIDATION_AUTO} was set. |
|
|
|
* mode, even when something other than {@link #VALIDATION_AUTO} was set. |
|
|
|
|
|
|
|
* @see #detectValidationMode |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected int getValidationModeForResource(Resource resource) { |
|
|
|
protected int getValidationModeForResource(Resource resource) { |
|
|
|
int validationModeToUse = getValidationMode(); |
|
|
|
int validationModeToUse = getValidationMode(); |
|
|
|
@ -539,7 +540,8 @@ public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Create the default implementation of {@link NamespaceHandlerResolver} used if none is specified. |
|
|
|
* Create the default implementation of {@link NamespaceHandlerResolver} used if none is specified. |
|
|
|
* Default implementation returns an instance of {@link DefaultNamespaceHandlerResolver}. |
|
|
|
* <p>The default implementation returns an instance of {@link DefaultNamespaceHandlerResolver}. |
|
|
|
|
|
|
|
* @see DefaultNamespaceHandlerResolver#DefaultNamespaceHandlerResolver(ClassLoader) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected NamespaceHandlerResolver createDefaultNamespaceHandlerResolver() { |
|
|
|
protected NamespaceHandlerResolver createDefaultNamespaceHandlerResolver() { |
|
|
|
ClassLoader cl = (getResourceLoader() != null ? getResourceLoader().getClassLoader() : getBeanClassLoader()); |
|
|
|
ClassLoader cl = (getResourceLoader() != null ? getResourceLoader().getClassLoader() : getBeanClassLoader()); |
|
|
|
|