@ -78,7 +79,7 @@ public class BeansDtdResolver implements EntityResolver {
@@ -78,7 +79,7 @@ public class BeansDtdResolver implements EntityResolver {
logger.debug("Could not resolve beans DTD ["+systemId+"]: not found in class path",ex);
}
}
}
}
}
@ -87,4 +88,10 @@ public class BeansDtdResolver implements EntityResolver {
@@ -87,4 +88,10 @@ public class BeansDtdResolver implements EntityResolver {
returnnull;
}
@Override
publicStringtoString(){
return"EntityResolver for DTDs "+Arrays.toString(DTD_NAMES);
@ -64,7 +64,7 @@ public class DefaultNamespaceHandlerResolver implements NamespaceHandlerResolver
@@ -64,7 +64,7 @@ public class DefaultNamespaceHandlerResolver implements NamespaceHandlerResolver
privatefinalStringhandlerMappingsLocation;
/** Stores the mappings from namespace URI to NamespaceHandler class name / instance */
@ -110,7 +110,7 @@ public class DefaultNamespaceHandlerResolver implements NamespaceHandlerResolver
@@ -110,7 +110,7 @@ public class DefaultNamespaceHandlerResolver implements NamespaceHandlerResolver
@ -121,7 +121,7 @@ public class DefaultNamespaceHandlerResolver implements NamespaceHandlerResolver
@@ -121,7 +121,7 @@ public class DefaultNamespaceHandlerResolver implements NamespaceHandlerResolver
thrownewFatalBeanException("Class ["+className+"] for namespace ["+namespaceUri+
"] does not implement the ["+NamespaceHandler.class.getName()+"] interface");
@ -145,23 +145,34 @@ public class DefaultNamespaceHandlerResolver implements NamespaceHandlerResolver
@@ -145,23 +145,34 @@ public class DefaultNamespaceHandlerResolver implements NamespaceHandlerResolver
@ -88,4 +88,11 @@ public class DelegatingEntityResolver implements EntityResolver {
@@ -88,4 +88,11 @@ public class DelegatingEntityResolver implements EntityResolver {
returnnull;
}
@Override
publicStringtoString(){
return"EntityResolver delegating "+XSD_SUFFIX+" to "+this.schemaResolver+
@ -67,7 +69,7 @@ public class PluggableSchemaResolver implements EntityResolver {
@@ -67,7 +69,7 @@ public class PluggableSchemaResolver implements EntityResolver {
privatefinalStringschemaMappingsLocation;
/** Stores the mapping of schema URL -> local schema path */
privatePropertiesschemaMappings;
privatevolatileMap<String,String>schemaMappings;
/**
@ -104,7 +106,7 @@ public class PluggableSchemaResolver implements EntityResolver {
@@ -104,7 +106,7 @@ public class PluggableSchemaResolver implements EntityResolver {
@ -119,24 +121,40 @@ public class PluggableSchemaResolver implements EntityResolver {
@@ -119,24 +121,40 @@ public class PluggableSchemaResolver implements EntityResolver {
returnnull;
}
protectedStringgetSchemaMapping(StringsystemId){
/**
*Loadthespecifiedschemamappingslazily.
*/
privateMap<String,String>getSchemaMappings(){
if(this.schemaMappings==null){
if(logger.isDebugEnabled()){
logger.debug("Loading schema mappings from ["+this.schemaMappingsLocation+"]");