git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@646286 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-04-09 11:48:45 +00:00
parent 4ba4853402
commit c338d3e0e5
1 changed files with 9 additions and 0 deletions

View File

@ -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