You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2009/07/17 18:22:49 UTC

svn commit: r795132 - /cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java

Author: dkulp
Date: Fri Jul 17 16:22:49 2009
New Revision: 795132

URL: http://svn.apache.org/viewvc?rev=795132&view=rev
Log:
Make the methods public for backwords compat

Modified:
    cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java

Modified: cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java?rev=795132&r1=795131&r2=795132&view=diff
==============================================================================
--- cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java (original)
+++ cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java Fri Jul 17 16:22:49 2009
@@ -99,7 +99,7 @@
      * Return a cached, namespace-aware, factory.
      * @return
      */
-    private static XMLInputFactory getXMLInputFactory() {
+    public static XMLInputFactory getXMLInputFactory() {
         XMLInputFactory f = NS_AWARE_INPUT_FACTORY_POOL.poll();
         if (f == null) {
             f = XMLInputFactory.newInstance();
@@ -108,11 +108,11 @@
         return f;
     }
     
-    private static void returnXMLInputFactory(XMLInputFactory factory) {
+    public static void returnXMLInputFactory(XMLInputFactory factory) {
         NS_AWARE_INPUT_FACTORY_POOL.offer(factory);
     }
     
-    private static XMLOutputFactory getXMLOutputFactory() {
+    public static XMLOutputFactory getXMLOutputFactory() {
         XMLOutputFactory f = OUTPUT_FACTORY_POOL.poll();
         if (f == null) {
             f = XMLOutputFactory.newInstance();
@@ -120,7 +120,7 @@
         return f;
     }
     
-    private static void returnXMLOutputFactory(XMLOutputFactory factory) {
+    public static void returnXMLOutputFactory(XMLOutputFactory factory) {
         OUTPUT_FACTORY_POOL.offer(factory);
     }