Package kieker.common.configuration
Class ReadOnlyConfiguration
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
kieker.common.configuration.Configuration
kieker.common.configuration.ReadOnlyConfiguration
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.Object,java.lang.Object>
public class ReadOnlyConfiguration extends Configuration
- Since:
- 1.13
- Author:
- Christian Wulf
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ReadOnlyConfiguration(java.util.Properties properties)
Create a read only configuration. -
Method Summary
Modifier and Type Method 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.Methods inherited from class kieker.common.configuration.Configuration
convertToPath, flatten, flatten, flattenInPlace, get, getBooleanProperty, getBooleanProperty, getDoubleProperty, getDoubleProperty, getEnumProperty, getIntProperty, getIntProperty, getLongProperty, getLongProperty, getPathProperty, getPropertiesStartingWith, getProperty, getProperty, getStringArrayProperty, getStringArrayProperty, getStringProperty, getStringProperty, put, setProperty, setProperty, setProperty, setProperty, toProperty
Methods inherited from class java.util.Properties
clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keys, keySet, list, list, merge, propertyNames, putIfAbsent, rehash, remove, replace, replace, replaceAll, save, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Constructor Details
-
ReadOnlyConfiguration
public ReadOnlyConfiguration(java.util.Properties properties)Create a read only configuration.- Parameters:
properties
- properties of the configuration
-
-
Method Details
-
setProperty
public java.lang.Object setProperty(java.lang.String key, java.lang.String value)- Overrides:
setProperty
in classjava.util.Properties
-
setDefaultConfiguration
Description copied from class:Configuration
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.- Overrides:
setDefaultConfiguration
in classConfiguration
- Parameters:
defaultConfiguration
- The default configuration for this configuration object.
-
setStringArrayProperty
public void setStringArrayProperty(java.lang.String key, java.lang.String[] value)Description copied from class:Configuration
Sets a property to the given string array. Note that the values must not contain the separator character '|'.- Overrides:
setStringArrayProperty
in classConfiguration
- Parameters:
key
- The key of the property to changevalue
- The array to set
-
clear
public void clear()- Specified by:
clear
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
clear
in classjava.util.Properties
-
load
public void load(java.io.InputStream inStream) throws java.io.IOException- Overrides:
load
in classjava.util.Properties
- Throws:
java.io.IOException
-
load
public void load(java.io.Reader reader) throws java.io.IOException- Overrides:
load
in classjava.util.Properties
- Throws:
java.io.IOException
-
loadFromXML
public void loadFromXML(java.io.InputStream in) throws java.io.IOException- Overrides:
loadFromXML
in classjava.util.Properties
- Throws:
java.io.IOException
-
putAll
public void putAll(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> t)- Specified by:
putAll
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
putAll
in classjava.util.Properties
-
remove
public java.lang.Object remove(java.lang.Object key)- Specified by:
remove
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
remove
in classjava.util.Properties
-