cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r666730 - in /cxf/branches/2.0.x-fixes: ./ rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java
Date Wed, 11 Jun 2008 16:48:34 GMT
Author: dkulp
Date: Wed Jun 11 09:48:33 2008
New Revision: 666730

URL: http://svn.apache.org/viewvc?rev=666730&view=rev
Log:
Merged revisions 666729 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r666729 | dkulp | 2008-06-11 12:36:44 -0400 (Wed, 11 Jun 2008) | 2 lines
  
  Use classloaderutils instead of class.forName
........

Modified:
    cxf/branches/2.0.x-fixes/   (props changed)
    cxf/branches/2.0.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java

Propchange: cxf/branches/2.0.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.0.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.0.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java?rev=666730&r1=666729&r2=666730&view=diff
==============================================================================
--- cxf/branches/2.0.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java
(original)
+++ cxf/branches/2.0.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java
Wed Jun 11 09:48:33 2008
@@ -36,6 +36,7 @@
 import org.xml.sax.XMLReader;
 
 
+import org.apache.cxf.common.classloader.ClassLoaderUtils;
 import org.springframework.beans.factory.xml.DefaultDocumentLoader;
 import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
 
@@ -64,7 +65,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