jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r599180 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/DefaultContentHandler.java
Date Wed, 28 Nov 2007 22:53:46 GMT
Author: jukka
Date: Wed Nov 28 14:53:45 2007
New Revision: 599180

URL: http://svn.apache.org/viewvc?rev=599180&view=rev
Log:
JCR-1181: Merged JCR-985 changes to org.apache.jackrabbit.commons so they benefit both jackrabbit-core
and jackrabbit-jcr2spi

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/DefaultContentHandler.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/DefaultContentHandler.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/DefaultContentHandler.java?rev=599180&r1=599179&r2=599180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/DefaultContentHandler.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/DefaultContentHandler.java
Wed Nov 28 14:53:45 2007
@@ -26,6 +26,8 @@
 import javax.xml.parsers.SAXParser;
 import javax.xml.parsers.SAXParserFactory;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.xml.sax.Attributes;
 import org.xml.sax.ContentHandler;
 import org.xml.sax.InputSource;
@@ -40,6 +42,12 @@
 class DefaultContentHandler extends DefaultHandler {
 
     /**
+     * Logger instance.
+     */
+    private static final Logger logger =
+        LoggerFactory.getLogger(DefaultContentHandler.class);
+
+    /**
      * The adapted content handler instance.
      */
     private final ContentHandler handler;
@@ -69,6 +77,8 @@
                     "http://xml.org/sax/features/namespace-prefixes", false);
 
             SAXParser parser = factory.newSAXParser();
+            // JCR-984 & JCR-985: Log the name of the SAXParser class
+            logger.debug("Using SAX parser " + parser.getClass().getName());
             parser.parse(new InputSource(in), this);
         } catch (FactoryConfigurationError e) {
             throw new RepositoryException(



Mime
View raw message