camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1476521 - /camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java
Date Sat, 27 Apr 2013 07:59:27 GMT
Author: davsclaus
Date: Sat Apr 27 07:59:27 2013
New Revision: 1476521

URL: http://svn.apache.org/r1476521
Log:
Polished

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java?rev=1476521&r1=1476520&r2=1476521&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java
Sat Apr 27 07:59:27 2013
@@ -99,7 +99,6 @@ public class XmlConverter {
         DOM_TO_SAX_CLASS = cl;
     }
 
-
     public XmlConverter() {
     }
 
@@ -907,6 +906,7 @@ public class XmlConverter {
 
     // Properties
     //-------------------------------------------------------------------------
+
     public DocumentBuilderFactory getDocumentBuilderFactory() {
         if (documentBuilderFactory == null) {
             documentBuilderFactory = createDocumentBuilderFactory();
@@ -918,9 +918,20 @@ public class XmlConverter {
         this.documentBuilderFactory = documentBuilderFactory;
     }
 
+    public TransformerFactory getTransformerFactory() {
+        if (transformerFactory == null) {
+            transformerFactory = createTransformerFactory();
+        }
+        return transformerFactory;
+    }
+
+    public void setTransformerFactory(TransformerFactory transformerFactory) {
+        this.transformerFactory = transformerFactory;
+    }
 
     // Helper methods
     //-------------------------------------------------------------------------
+
     public DocumentBuilderFactory createDocumentBuilderFactory() {
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         factory.setNamespaceAware(true);
@@ -929,7 +940,6 @@ public class XmlConverter {
         return factory;
     }
 
-
     public DocumentBuilder createDocumentBuilder() throws ParserConfigurationException {
         DocumentBuilderFactory factory = getDocumentBuilderFactory();
         return factory.newDocumentBuilder();
@@ -940,17 +950,6 @@ public class XmlConverter {
         return builder.newDocument();
     }
 
-    public TransformerFactory getTransformerFactory() {
-        if (transformerFactory == null) {
-            transformerFactory = createTransformerFactory();
-        }
-        return transformerFactory;
-    }
-
-    public void setTransformerFactory(TransformerFactory transformerFactory) {
-        this.transformerFactory = transformerFactory;
-    }
-
     /**
      * @deprecated use {@link #createTransformer}, will be removed in Camel 3.0
      */



Mime
View raw message