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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBroker(URI brokerURI) protected BrokerServicecreateBrokerService(URI brokerURI, Map<Object, Object> properties) protected InputStreamfindResourceOnClassPath(String remaining) loadProperties(URI brokerURI) Lets load the properties from some external URL or a relative fileprotected InputStreamloadStream(File file, String remaining)
-
Constructor Details
-
PropertiesBrokerFactory
public PropertiesBrokerFactory()
-
-
Method Details
-
createBroker
- Specified by:
createBrokerin interfaceBrokerFactoryHandler- Throws:
Exception
-
loadProperties
Lets load the properties from some external URL or a relative file- Throws:
IOException
-
loadStream
- Throws:
IOException
-
findResourceOnClassPath
-
createBrokerService
-