activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r646286 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/TransportFactory.java
Date Wed, 09 Apr 2008 11:48:45 GMT
Author: rajdavies
Date: Wed Apr  9 04:48:45 2008
New Revision: 646286

URL: http://svn.apache.org/viewvc?rev=646286&view=rev
Log:
Patch applied for https://issues.apache.org/activemq/browse/AMQ-1607

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/TransportFactory.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/TransportFactory.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/TransportFactory.java?rev=646286&r1=646285&r2=646286&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/TransportFactory.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/TransportFactory.java
Wed Apr  9 04:48:45 2008
@@ -146,6 +146,15 @@
             throw IOExceptionSupport.create(e);
         }
     }
+    
+     /**
+      * Allow registration of a transport factory without wiring via META-INF classes
+     * @param scheme
+     * @param tf
+     */
+    public static void registerTransportFactory(String scheme, TransportFactory tf) {
+        TRANSPORT_FACTORYS.put(scheme, tf);
+      }
 
     /**
      * Factory method to create a new transport



Mime
View raw message