org.apache.tamaya.inject

## Class BaseDynamicValue<T>

- java.lang.Object
- - org.apache.tamaya.inject.BaseDynamicValue<T>

- Type Parameters:
    `T` - The type of the value.
  All Implemented Interfaces:
    DynamicValue<T>

      public abstract class BaseDynamicValue<T>
      extends Object
      implements DynamicValue<T>

  A accessor for a single configured value. This can be used to support values that may change during runtime, reconfigured or final. Hereby external code (could be Tamaya configuration listners or client code), can set a new value. Depending on the `UpdatePolicy` the new value is immedeately active or it requires an active commit by client code. Similarly an instance also can ignore all later changes to the value.
  Types of this interface can be used as injection targets in injected beans or as template resiult on configuration templates.

  ### Implementation Specification

  Implementation of this interface must be
  - Serializable, when also the item stored is serializable
  - Thread safe

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.apache.tamaya.inject.DynamicValue

      `DynamicValue.UpdatePolicy`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BaseDynamicValue()`

  - ### Method Summary

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.tamaya.inject.DynamicValue

      `addListener, commit, commitAndGet, discard, evaluateValue, get, getNewValue, getUpdatePolicy, isPresent, orElse, orElseGet, orElseThrow, removeListener, setUpdatePolicy, updateValue`

- - ### Constructor Detail

    - #### BaseDynamicValue

          public BaseDynamicValue()

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