public class PropertiesBrokerFactory extends Object implements BrokerFactoryHandler
BrokerFactoryHandler which uses a properties file to configure the
broker's various policies.| Constructor and Description |
|---|
PropertiesBrokerFactory() |
| Modifier and Type | Method and 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 file
|
protected InputStream |
loadStream(File file,
String remaining) |
public PropertiesBrokerFactory()
public BrokerService createBroker(URI brokerURI) throws Exception
createBroker in interface BrokerFactoryHandlerExceptionprotected Map<Object,Object> loadProperties(URI brokerURI) throws IOException
IOExceptionprotected InputStream loadStream(File file, String remaining) throws IOException
IOExceptionprotected InputStream findResourceOnClassPath(String remaining)
protected BrokerService createBrokerService(URI brokerURI, Map<Object,Object> properties)
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.