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 SummaryConstructors Constructor Description PropertiesBrokerFactory()
 - 
Method SummaryAll 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- 
createBrokerpublic BrokerService createBroker(URI brokerURI) throws Exception - Specified by:
- createBrokerin interface- BrokerFactoryHandler
- Throws:
- Exception
 
 - 
loadPropertiesprotected Map<Object,Object> loadProperties(URI brokerURI) throws IOException Lets load the properties from some external URL or a relative file- Throws:
- IOException
 
 - 
loadStreamprotected InputStream loadStream(File file, String remaining) throws IOException - Throws:
- IOException
 
 - 
findResourceOnClassPathprotected InputStream findResourceOnClassPath(String remaining) 
 - 
createBrokerServiceprotected BrokerService createBrokerService(URI brokerURI, Map<Object,Object> properties) 
 
- 
 
-