org.apache.activemq.broker
Class PropertiesBrokerFactory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesBrokerFactory
public PropertiesBrokerFactory()
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-2015. All Rights Reserved.