public class ReadOnlyConfiguration extends Configuration
Constructor and Description |
---|
ReadOnlyConfiguration(java.util.Properties properties) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
load(java.io.InputStream inStream) |
void |
load(java.io.Reader reader) |
void |
loadFromXML(java.io.InputStream in) |
void |
putAll(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> t) |
java.lang.Object |
remove(java.lang.Object key) |
void |
setDefaultConfiguration(Configuration defaultConfiguration)
You should know what you do if you use this method!
Currently it is used for a (dirty) hack to add default configurations to Writers or AnalysisPlugins.
|
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value) |
void |
setStringArrayProperty(java.lang.String key,
java.lang.String[] value)
Sets a property to the given string array.
|
convertToPath, flatten, flatten, flattenInPlace, get, getBooleanProperty, getBooleanProperty, getDoubleProperty, getDoubleProperty, getIntProperty, getIntProperty, getLongProperty, getLongProperty, getPathProperty, getPropertiesStartingWith, getProperty, getProperty, getStringArrayProperty, getStringArrayProperty, getStringProperty, getStringProperty, put, setProperty, setProperty, setProperty, setProperty, toProperty
list, list, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames
public ReadOnlyConfiguration(java.util.Properties properties)
public java.lang.Object setProperty(java.lang.String key, java.lang.String value)
setProperty
in class java.util.Properties
public void setDefaultConfiguration(Configuration defaultConfiguration)
Configuration
setDefaultConfiguration
in class Configuration
defaultConfiguration
- The default configuration for this configuration object.public void setStringArrayProperty(java.lang.String key, java.lang.String[] value)
Configuration
setStringArrayProperty
in class Configuration
key
- The key of the property to changevalue
- The array to setpublic void clear()
clear
in interface java.util.Map<java.lang.Object,java.lang.Object>
clear
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public void load(java.io.InputStream inStream) throws java.io.IOException
load
in class java.util.Properties
java.io.IOException
public void load(java.io.Reader reader) throws java.io.IOException
load
in class java.util.Properties
java.io.IOException
public void loadFromXML(java.io.InputStream in) throws java.io.IOException
loadFromXML
in class java.util.Properties
java.io.IOException
public void putAll(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> t)
putAll
in interface java.util.Map<java.lang.Object,java.lang.Object>
putAll
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.Object,java.lang.Object>
remove
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
Copyright 2017 Kieker Project, http://kieker-monitoring.net