cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r665701 - /cxf/trunk/api/src/main/java/org/apache/cxf/BusFactory.java
Date Mon, 09 Jun 2008 14:23:17 GMT
Author: sergeyb
Date: Mon Jun  9 07:23:17 2008
New Revision: 665701

URL: http://svn.apache.org/viewvc?rev=665701&view=rev
Log:
Updating BusFactory to use ClassLoaderUtils instead of Class.forName() 

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/BusFactory.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/BusFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/BusFactory.java?rev=665701&r1=665700&r2=665701&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/BusFactory.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/BusFactory.java Mon Jun  9 07:23:17 2008
@@ -26,6 +26,7 @@
 import java.util.logging.Logger;
 
 import org.apache.cxf.buslifecycle.BusLifeCycleManager;
+import org.apache.cxf.common.classloader.ClassLoaderUtils;
 import org.apache.cxf.common.logging.LogUtils;
 
 public abstract class BusFactory {
@@ -154,7 +155,8 @@
         }
         Class<? extends BusFactory> busFactoryClass;
         try {
-            busFactoryClass = Class.forName(className, true, classLoader).asSubclass(BusFactory.class);
+            busFactoryClass = 
+                ClassLoaderUtils.loadClass(className, BusFactory.class).asSubclass(BusFactory.class);
             instance = busFactoryClass.newInstance();
         } catch (Exception ex) {
             LogUtils.log(LOG, Level.SEVERE, "BUS_FACTORY_INSTANTIATION_EXC", ex);



Mime
View raw message