activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r517659 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerFactory.java
Date Tue, 13 Mar 2007 12:08:26 GMT
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));
+    }
+
 
 }



Mime
View raw message