cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r666729 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java
Date Wed, 11 Jun 2008 16:36:44 GMT
Author: dkulp
Date: Wed Jun 11 09:36:44 2008
New Revision: 666729

URL: http://svn.apache.org/viewvc?rev=666729&view=rev
Log:
Use classloaderutils instead of class.forName

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java?rev=666729&r1=666728&r2=666729&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java Wed
Jun 11 09:36:44 2008
@@ -44,6 +44,7 @@
 
 import com.sun.xml.fastinfoset.stax.StAXDocumentParser;
 
+import org.apache.cxf.common.classloader.ClassLoaderUtils;
 import org.apache.cxf.staxutils.StaxUtils;
 import org.apache.cxf.staxutils.W3CDOMStreamWriter;
 import org.springframework.beans.factory.xml.DefaultDocumentLoader;
@@ -75,7 +76,8 @@
         transformerFactory = TransformerFactory.newInstance();
         
         try {
-            Class<?> cls = Class.forName("com.ctc.wstx.sax.WstxSAXParserFactory");
+            Class<?> cls = ClassLoaderUtils.loadClass("com.ctc.wstx.sax.WstxSAXParserFactory",
+                                                      TunedDocumentLoader.class);
             saxParserFactory = (SAXParserFactory)cls.newInstance();
             nsasaxParserFactory = (SAXParserFactory)cls.newInstance();
         } catch (Throwable e) {



Mime
View raw message