public class MemoryConfigurator extends Object implements Configurator, AcceptsBusEventAggregator
Properties
objects as
its source, instead of the more typical properties files. MemoryConfigurator will return
null for any requests for any given component name, unless that component name has
previously been added to the configurators "memory" using the add
method.
This class is typically used for test-cases.Constructor and Description |
---|
MemoryConfigurator()
Constructor for the MemoryConfigurator object
|
Modifier and Type | Method and Description |
---|---|
void |
add(String componentName,
Properties props)
Description of the Method
|
void |
add(String componentName,
String name1,
String property1)
Creates a named component with one
with one name/property pair.
|
void |
add(String componentName,
String name1,
String property1,
String name2,
String property2)
Creates a named component with one
with two name/property pairs.
|
Properties |
getPropertiesFor(String name)
Constructor for the getPropertiesFrom object
|
void |
setBusEventAggregator(neo.nursery.BusEventAggregator pBusEventAggregator) |
String |
toString() |
public MemoryConfigurator()
public Properties getPropertiesFor(String name) throws BusException
getPropertiesFor
in interface Configurator
name
- Description of ParameterBusException
- if the name does not exist, or if the name is invalidpublic void add(String componentName, Properties props)
componentName
- Description of Parameterprops
- Description of Parameterpublic void add(String componentName, String name1, String property1)
public void add(String componentName, String name1, String property1, String name2, String property2)
public void setBusEventAggregator(neo.nursery.BusEventAggregator pBusEventAggregator)
setBusEventAggregator
in interface AcceptsBusEventAggregator
© 1998- 2018 Stibo DX