activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r417658 - in /incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/spi: ClassLoaderSPIConnectionFactory.java ReflectionSPIConnectionFactory.java
Date Wed, 28 Jun 2006 03:26:06 GMT
Author: aco
Date: Tue Jun 27 20:26:05 2006
New Revision: 417658

URL: http://svn.apache.org/viewvc?rev=417658&view=rev
Log:
Minor API change.

Modified:
    incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/spi/ClassLoaderSPIConnectionFactory.java
    incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/spi/ReflectionSPIConnectionFactory.java

Modified: incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/spi/ClassLoaderSPIConnectionFactory.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/spi/ClassLoaderSPIConnectionFactory.java?rev=417658&r1=417657&r2=417658&view=diff
==============================================================================
--- incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/spi/ClassLoaderSPIConnectionFactory.java
(original)
+++ incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/spi/ClassLoaderSPIConnectionFactory.java
Tue Jun 27 20:26:05 2006
@@ -39,7 +39,7 @@
         ClassLoader newClassLoader = getContextClassLoader(settings);
         Thread.currentThread().setContextClassLoader(newClassLoader);
 
-        return instantiateConnectionFactory(newClassLoader, settings);
+        return instantiateConnectionFactory(settings);
     }
 
     protected ClassLoader getContextClassLoader(Properties settings) {
@@ -76,5 +76,5 @@
         return ClassLoaderSPIConnectionFactory.class.getClassLoader();
     }
 
-    protected abstract ConnectionFactory instantiateConnectionFactory(ClassLoader cl, Properties
settings) throws Exception;
+    protected abstract ConnectionFactory instantiateConnectionFactory(Properties settings)
throws Exception;
 }

Modified: incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/spi/ReflectionSPIConnectionFactory.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/spi/ReflectionSPIConnectionFactory.java?rev=417658&r1=417657&r2=417658&view=diff
==============================================================================
--- incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/spi/ReflectionSPIConnectionFactory.java
(original)
+++ incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/spi/ReflectionSPIConnectionFactory.java
Tue Jun 27 20:26:05 2006
@@ -23,8 +23,8 @@
 
 public abstract class ReflectionSPIConnectionFactory extends ClassLoaderSPIConnectionFactory
{
 
-    public ConnectionFactory instantiateConnectionFactory(ClassLoader cl, Properties settings)
throws Exception {
-        Class factoryClass = cl.loadClass(getClassName());
+    public ConnectionFactory instantiateConnectionFactory(Properties settings) throws Exception
{
+        Class factoryClass = Thread.currentThread().getContextClassLoader().loadClass(getClassName());
         ConnectionFactory factory = (ConnectionFactory)factoryClass.newInstance();
         configureConnectionFactory(factory, settings);
         return factory;



Mime
View raw message