org.apache.activemq.broker
Class PropertiesBrokerFactory
java.lang.Object
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.
- Version:
- $Revision: 564057 $
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(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-2011 Apache Software Foundation. All Rights Reserved.