From c338d3e0e5212e0d324ec115063b1a8bfc6f6e03 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Wed, 9 Apr 2008 11:48:45 +0000 Subject: [PATCH] Patch applied for https://issues.apache.org/activemq/browse/AMQ-1607 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@646286 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/transport/TransportFactory.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/TransportFactory.java b/activemq-core/src/main/java/org/apache/activemq/transport/TransportFactory.java index 516b4eba1a..53dbd11ee3 100755 --- a/activemq-core/src/main/java/org/apache/activemq/transport/TransportFactory.java +++ b/activemq-core/src/main/java/org/apache/activemq/transport/TransportFactory.java @@ -146,6 +146,15 @@ public abstract class TransportFactory { 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