org.apache.activemq.broker
Class PropertiesBrokerFactory

java.lang.Object
  extended by org.apache.activemq.broker.PropertiesBrokerFactory
All Implemented Interfaces:
BrokerFactoryHandler

public class PropertiesBrokerFactory
extends Object
implements BrokerFactoryHandler

A BrokerFactoryHandler which uses a properties file to configure the broker's various policies.


Constructor Summary
PropertiesBrokerFactory()
           
 
Method Summary
 BrokerService createBroker(URI brokerURI)
           
protected  BrokerService createBrokerService(URI brokerURI, Map properties)
           
protected  InputStream findResourceOnClassPath(String remaining)
           
protected  Map loadProperties(URI brokerURI)
          Lets load the properties from some external URL or a relative file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesBrokerFactory

public PropertiesBrokerFactory()
Method Detail

createBroker

public BrokerService createBroker(URI brokerURI)
                           throws Exception
Specified by:
createBroker in interface BrokerFactoryHandler
Throws:
Exception

loadProperties

protected Map loadProperties(URI brokerURI)
                      throws IOException
Lets load the properties from some external URL or a relative file

Throws:
IOException

findResourceOnClassPath

protected InputStream findResourceOnClassPath(String remaining)

createBrokerService

protected BrokerService createBrokerService(URI brokerURI,
                                            Map properties)


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.