org.apache.tamaya.events

## Class FrozenConfiguration

- java.lang.Object
- - org.apache.tamaya.events.FrozenConfiguration

- All Implemented Interfaces:
    Serializable, Configuration

      public final class FrozenConfiguration
      extends Object
      implements Configuration, Serializable

  /** Configuration implementation that stores all current values of a given (possibly dynamic, contextual and non remote capable instance) and is fully serializable. Note that hereby only the scannable key/value pairs are considered.
  See Also:
    Serialized Form

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `String` | `get(String key)`
    `<T> T` | `get(String key, Class<T> type)`
    `<T> T` | `get(String key, TypeLiteral<T> type)` Accesses the current String value for the given key and tries to convert it using the `PropertyConverter` instances provided by the current `ConfigurationContext`.
    `Map<String,String>` | `getProperties()`
    `int` | `hashCode()`
    `static FrozenConfiguration` | `of(Configuration config)` Creates a new FrozenConfiguration instance based on a Configuration given.
    `<T> T` | `query(ConfigQuery<T> query)`
    `String` | `toString()`
    `Configuration` | `with(ConfigOperator operator)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### of

          public static FrozenConfiguration of(Configuration config)

      Creates a new FrozenConfiguration instance based on a Configuration given.
      Parameters:
        `config` - the configuration to be frozen, not null.
      Returns:
        the frozen Configuration.

    - #### get

          public String get(String key)

      Specified by:
        `get` in interface `Configuration`

    - #### get

          public <T> T get(String key,
                           Class<T> type)

      Specified by:
        `get` in interface `Configuration`

    - #### get

          public <T> T get(String key,
                           TypeLiteral<T> type)

      Accesses the current String value for the given key and tries to convert it using the `PropertyConverter` instances provided by the current `ConfigurationContext`.
      Specified by:
        `get` in interface `Configuration`
      Type Parameters:
        `T` - the value type
      Parameters:
        `key` - the property's absolute, or relative path, e.g. @code a/b/c/d.myProperty}.
        `type` - The target type required, not null.
      Returns:
        the converted value, never null.

    - #### getProperties

          public Map<String,String> getProperties()

      Specified by:
        `getProperties` in interface `Configuration`

    - #### with

          public Configuration with(ConfigOperator operator)

      Specified by:
        `with` in interface `Configuration`

    - #### query

          public <T> T query(ConfigQuery<T> query)

      Specified by:
        `query` in interface `Configuration`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014–2015 Apache Software Foundation. All rights reserved.