Package org.apache.activemq.broker
Class PropertiesBrokerFactory
java.lang.Object
org.apache.activemq.broker.PropertiesBrokerFactory
- All Implemented Interfaces:
BrokerFactoryHandler
A
BrokerFactoryHandler
which uses a properties file to configure the
broker's various policies.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBroker
(URI brokerURI) protected BrokerService
createBrokerService
(URI brokerURI, Map<Object, Object> properties) protected InputStream
findResourceOnClassPath
(String remaining) loadProperties
(URI brokerURI) Lets load the properties from some external URL or a relative fileprotected InputStream
loadStream
(File file, String remaining)
-
Constructor Details
-
PropertiesBrokerFactory
public PropertiesBrokerFactory()
-
-
Method Details
-
createBroker
- Specified by:
createBroker
in interfaceBrokerFactoryHandler
- Throws:
Exception
-
loadProperties
Lets load the properties from some external URL or a relative file- Throws:
IOException
-
loadStream
- Throws:
IOException
-
findResourceOnClassPath
-
createBrokerService
-