Author: mircea.markus
Date: 2008-09-16 12:06:40 -0400 (Tue, 16 Sep 2008)
New Revision: 6735
Modified:
core/trunk/src/main/java/org/jboss/cache/config/parsing/XmlConfigurationParser.java
Log:
removed unuded code
Modified:
core/trunk/src/main/java/org/jboss/cache/config/parsing/XmlConfigurationParser.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/config/parsing/XmlConfigurationParser.java 2008-09-16
12:59:11 UTC (rev 6734)
+++
core/trunk/src/main/java/org/jboss/cache/config/parsing/XmlConfigurationParser.java 2008-09-16
16:06:40 UTC (rev 6735)
@@ -402,31 +402,4 @@
NodeList elements = element.getElementsByTagName("jbosscache");
return elements != null && elements.getLength() > 0;
}
-
- /**
- * Default schema validation error handler, that throws an exception on validation
errors.
- */
- private static class FailureErrorHandler implements ErrorHandler
- {
- public void warning(SAXParseException exception) throws SAXException
- {
- logAndThrowException(exception);
- }
-
- public void error(SAXParseException exception) throws SAXException
- {
- logAndThrowException(exception);
- }
-
- public void fatalError(SAXParseException exception) throws SAXException
- {
- logAndThrowException(exception);
- }
-
- private void logAndThrowException(SAXParseException exception)
- {
- log.error("Configuration warning: " + exception.getMessage());
- throw new ConfigurationException("Incorrect configuration file. Use
'-Djbosscache.config.validate=false' to disable validation.", exception);
- }
- }
}
Show replies by date