Package 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
ABrokerFactoryHandler
which uses a properties file to configure the broker's various policies.
-
-
Constructor Summary
Constructors Constructor Description PropertiesBrokerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BrokerService
createBroker(URI brokerURI)
protected BrokerService
createBrokerService(URI brokerURI, Map<Object,Object> properties)
protected InputStream
findResourceOnClassPath(String remaining)
protected Map<Object,Object>
loadProperties(URI brokerURI)
Lets load the properties from some external URL or a relative fileprotected InputStream
loadStream(File file, String remaining)
-
-
-
Method Detail
-
createBroker
public BrokerService createBroker(URI brokerURI) throws Exception
- Specified by:
createBroker
in interfaceBrokerFactoryHandler
- Throws:
Exception
-
loadProperties
protected Map<Object,Object> loadProperties(URI brokerURI) throws IOException
Lets load the properties from some external URL or a relative file- Throws:
IOException
-
loadStream
protected InputStream loadStream(File file, String remaining) throws IOException
- Throws:
IOException
-
findResourceOnClassPath
protected InputStream findResourceOnClassPath(String remaining)
-
createBrokerService
protected BrokerService createBrokerService(URI brokerURI, Map<Object,Object> properties)
-
-