@@ -436,11 +436,12 @@ protected Document doLoadDocument(InputSource inputSource, Resource resource) th
436
436
}
437
437
438
438
/**
439
- * Gets the validation mode for the specified {@link Resource}. If no explicit
440
- * validation mode has been configured then the validation mode is
441
- * {@link #detectValidationMode detected}.
439
+ * Determine the validation mode for the specified {@link Resource}.
440
+ * If no explicit validation mode has been configured, then the validation
441
+ * mode gets {@link #detectValidationMode detected} from the given resource .
442
442
* <p>Override this method if you would like full control over the validation
443
443
* mode, even when something other than {@link #VALIDATION_AUTO} was set.
444
+ * @see #detectValidationMode
444
445
*/
445
446
protected int getValidationModeForResource (Resource resource ) {
446
447
int validationModeToUse = getValidationMode ();
@@ -458,7 +459,7 @@ protected int getValidationModeForResource(Resource resource) {
458
459
}
459
460
460
461
/**
461
- * Detects which kind of validation to perform on the XML file identified
462
+ * Detect which kind of validation to perform on the XML file identified
462
463
* by the supplied {@link Resource}. If the file has a {@code DOCTYPE}
463
464
* definition then DTD validation is used otherwise XSD validation is assumed.
464
465
* <p>Override this method if you would like to customize resolution
@@ -544,7 +545,8 @@ public NamespaceHandlerResolver getNamespaceHandlerResolver() {
544
545
545
546
/**
546
547
* Create the default implementation of {@link NamespaceHandlerResolver} used if none is specified.
547
- * Default implementation returns an instance of {@link DefaultNamespaceHandlerResolver}.
548
+ * <p>The default implementation returns an instance of {@link DefaultNamespaceHandlerResolver}.
549
+ * @see DefaultNamespaceHandlerResolver#DefaultNamespaceHandlerResolver(ClassLoader)
548
550
*/
549
551
protected NamespaceHandlerResolver createDefaultNamespaceHandlerResolver () {
550
552
ClassLoader cl = (getResourceLoader () != null ? getResourceLoader ().getClassLoader () : getBeanClassLoader ());
0 commit comments