public class SystemPropertyConfiguration extends HierarchicalConfiguration
Constructor and Description |
---|
SystemPropertyConfiguration()
Creates a report configuration that includes all the system properties (whether they are
related to reports or not).
|
Modifier and Type | Method and Description |
---|---|
Enumeration<String> |
getConfigProperties()
Returns all defined configuration properties for the report.
|
String |
getConfigProperty(String key,
String defaultValue)
Returns the configuration property with the specified key (or the specified default value
if there is no such property).
|
boolean |
isLocallyDefined(String key)
Checks, whether the given key is locally defined in the system properties.
|
void |
setConfigProperty(String key,
String value)
Sets a configuration property.
|
addAll, clone, findPropertyKeys, getConfigProperty, insertConfiguration, reconnectConfiguration
public SystemPropertyConfiguration()
PropertyFileConfiguration
.public void setConfigProperty(String key, String value)
setConfigProperty
in interface ModifiableConfiguration
setConfigProperty
in class HierarchicalConfiguration
key
- the property key.value
- the property value.public String getConfigProperty(String key, String defaultValue)
getConfigProperty
in interface Configuration
getConfigProperty
in class HierarchicalConfiguration
key
- the property key.defaultValue
- the default value.public boolean isLocallyDefined(String key)
isLocallyDefined
in class HierarchicalConfiguration
key
- the key that should be checked.HierarchicalConfiguration.isLocallyDefined(String)
public Enumeration<String> getConfigProperties()
getConfigProperties
in interface Configuration
getConfigProperties
in class HierarchicalConfiguration