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
  • 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 class java.util.Properties
    • setDefaultConfiguration

      public void setDefaultConfiguration​(Configuration defaultConfiguration)
      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 class Configuration
      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 class Configuration
      Parameters:
      key - The key of the property to change
      value - The array to set
    • clear

      public void clear()
      Specified by:
      clear in interface java.util.Map<java.lang.Object,​java.lang.Object>
      Overrides:
      clear in class java.util.Properties
    • load

      public void load​(java.io.InputStream inStream) throws java.io.IOException
      Overrides:
      load in class java.util.Properties
      Throws:
      java.io.IOException
    • load

      public void load​(java.io.Reader reader) throws java.io.IOException
      Overrides:
      load in class java.util.Properties
      Throws:
      java.io.IOException
    • loadFromXML

      public void loadFromXML​(java.io.InputStream in) throws java.io.IOException
      Overrides:
      loadFromXML in class java.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 interface java.util.Map<java.lang.Object,​java.lang.Object>
      Overrides:
      putAll in class java.util.Properties
    • remove

      public java.lang.Object remove​(java.lang.Object key)
      Specified by:
      remove in interface java.util.Map<java.lang.Object,​java.lang.Object>
      Overrides:
      remove in class java.util.Properties