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 voidclear()voidload(java.io.InputStream inStream)voidload(java.io.Reader reader)voidloadFromXML(java.io.InputStream in)voidputAll(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> t)java.lang.Objectremove(java.lang.Object key)voidsetDefaultConfiguration(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.ObjectsetProperty(java.lang.String key, java.lang.String value)voidsetStringArrayProperty(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, toPropertyMethods 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:
setPropertyin classjava.util.Properties
-
setDefaultConfiguration
Description copied from class:ConfigurationYou 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:
setDefaultConfigurationin 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:ConfigurationSets a property to the given string array. Note that the values must not contain the separator character '|'.- Overrides:
setStringArrayPropertyin classConfiguration- Parameters:
key- The key of the property to changevalue- The array to set
-
clear
public void clear()- Specified by:
clearin interfacejava.util.Map<java.lang.Object,java.lang.Object>- Overrides:
clearin classjava.util.Properties
-
load
public void load(java.io.InputStream inStream) throws java.io.IOException- Overrides:
loadin classjava.util.Properties- Throws:
java.io.IOException
-
load
public void load(java.io.Reader reader) throws java.io.IOException- Overrides:
loadin classjava.util.Properties- Throws:
java.io.IOException
-
loadFromXML
public void loadFromXML(java.io.InputStream in) throws java.io.IOException- Overrides:
loadFromXMLin 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:
putAllin interfacejava.util.Map<java.lang.Object,java.lang.Object>- Overrides:
putAllin classjava.util.Properties
-
remove
public java.lang.Object remove(java.lang.Object key)- Specified by:
removein interfacejava.util.Map<java.lang.Object,java.lang.Object>- Overrides:
removein classjava.util.Properties
-