You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by js...@apache.org on 2007/03/13 13:08:26 UTC
svn commit: r517659 -
/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerFactory.java
Author: jstrachan
Date: Tue Mar 13 05:08:25 2007
New Revision: 517659
URL: http://svn.apache.org/viewvc?view=rev&rev=517659
Log:
added helper method
Modified:
activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerFactory.java
Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerFactory.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerFactory.java?view=diff&rev=517659&r1=517658&r2=517659
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerFactory.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerFactory.java Tue Mar 13 05:08:25 2007
@@ -30,7 +30,7 @@
*/
public class BrokerFactory {
- static final private FactoryFinder brokerFactoryHandlerFinder = new FactoryFinder("META-INF/services/org/apache/activemq/broker/");
+ static final private FactoryFinder brokerFactoryHandlerFinder = new FactoryFinder("META-INF/services/org/apache/activemq/broker/");
public interface BrokerFactoryHandler {
public BrokerService createBroker(URI brokerURI) throws Exception;
@@ -57,5 +57,16 @@
BrokerService broker = handler.createBroker(brokerURI);
return broker;
}
+
+
+ /**
+ * Creates a broker from a URI configuration
+ * @param brokerURI
+ * @throws Exception
+ */
+ public static BrokerService createBroker(String brokerURI) throws Exception {
+ return createBroker(new URI(brokerURI));
+ }
+
}