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
ABrokerFactoryHandlerwhich 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 BrokerServicecreateBroker(URI brokerURI)protected BrokerServicecreateBrokerService(URI brokerURI, Map<Object,Object> properties)protected InputStreamfindResourceOnClassPath(String remaining)protected Map<Object,Object>loadProperties(URI brokerURI)Lets load the properties from some external URL or a relative fileprotected InputStreamloadStream(File file, String remaining)
-
-
-
Method Detail
-
createBroker
public BrokerService createBroker(URI brokerURI) throws Exception
- Specified by:
createBrokerin 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)
-
-