org.apache.activemq.broker
Class PropertiesBrokerFactory

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

public class PropertiesBrokerFactory
extends java.lang.Object
implements BrokerFactoryHandler

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


Constructor Summary
PropertiesBrokerFactory()
           
 
Method Summary
 BrokerService createBroker(java.net.URI brokerURI)
           
protected  BrokerService createBrokerService(java.net.URI brokerURI, java.util.Map properties)
           
protected  java.io.InputStream findResourceOnClassPath(java.lang.String remaining)
           
protected  java.util.Map loadProperties(java.net.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(java.net.URI brokerURI)
                           throws java.lang.Exception
Specified by:
createBroker in interface BrokerFactoryHandler
Throws:
java.lang.Exception

loadProperties

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

Throws:
java.io.IOException

findResourceOnClassPath

protected java.io.InputStream findResourceOnClassPath(java.lang.String remaining)

createBrokerService

protected BrokerService createBrokerService(java.net.URI brokerURI,
                                            java.util.Map properties)


Copyright © 2005-2011. All Rights Reserved.