cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r586215 - /cocoon/trunk/blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/xml/dom/SVGBuilder.java
Date Fri, 19 Oct 2007 01:46:20 GMT
Author: vgritsenko
Date: Thu Oct 18 18:46:19 2007
New Revision: 586215

URL: http://svn.apache.org/viewvc?rev=586215&view=rev
Log:
switching to new AbstractLogEnabled

Modified:
    cocoon/trunk/blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/xml/dom/SVGBuilder.java

Modified: cocoon/trunk/blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/xml/dom/SVGBuilder.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/xml/dom/SVGBuilder.java?rev=586215&r1=586214&r2=586215&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/xml/dom/SVGBuilder.java
(original)
+++ cocoon/trunk/blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/xml/dom/SVGBuilder.java
Thu Oct 18 18:46:19 2007
@@ -16,22 +16,21 @@
  */
 package org.apache.cocoon.xml.dom;
 
-import org.apache.avalon.framework.logger.LogEnabled;
-import org.apache.avalon.framework.logger.Logger;
-import org.apache.avalon.excalibur.pool.Recyclable;
+import java.net.MalformedURLException;
+import java.net.URL;
 
+import org.apache.avalon.excalibur.pool.Recyclable;
 import org.apache.batik.dom.svg.SAXSVGDocumentFactory;
 import org.apache.batik.dom.svg.SVGDOMImplementation;
 import org.apache.batik.dom.svg.SVGOMDocument;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 
 import org.apache.cocoon.xml.XMLConsumer;
 
 import org.w3c.dom.Document;
-import org.xml.sax.SAXException;
 import org.xml.sax.Locator;
-
-import java.net.MalformedURLException;
-import java.net.URL;
+import org.xml.sax.SAXException;
 
 /**
  * The <code>SVGBuilder</code> is a utility class that will generate a
@@ -39,8 +38,10 @@
  *
  * @version $Id$
  */
-public class SVGBuilder extends SAXSVGDocumentFactory implements XMLConsumer, LogEnabled,
Recyclable {
-    protected Logger log;
+public class SVGBuilder extends SAXSVGDocumentFactory
+                        implements XMLConsumer, Recyclable {
+
+    protected final Log log = LogFactory.getLog(getClass());
 
     protected Locator locator;
 
@@ -54,18 +55,7 @@
         super(SAX_PARSER);
     }
 
-    /**
-     * Provide component with a logger.
-     *
-     * @param logger the logger
-     */
-    public void enableLogging(Logger logger) {
-        if (this.log == null) {
-            this.log = logger;
-        }
-    }
-
-    protected Logger getLogger() {
+    protected Log getLogger() {
         return this.log;
     }
 



Mime
View raw message