Class ThreadLocalValue<T>

    • Constructor Detail

      • ThreadLocalValue

        public ThreadLocalValue()
        Deprecated.
        Construct a new instance.
    • Method Detail

      • getValue

        public T getValue()
        Deprecated.
        Get the actual dependency value.
        Specified by:
        getValue in interface Value<T>
        Returns:
        the actual dependency value
      • setValue

        public void setValue​(Value<? extends T> newValue)
        Deprecated.
        Set this value, replacing any current value.
        Parameters:
        newValue - the new value to set
      • getAndSetValue

        public Value<? extends T> getAndSetValue​(Value<? extends T> newValue)
        Deprecated.
        Get and set the value. Returns the old value so it can be restored later on (typically in a finally block).
        Parameters:
        newValue - the new value
        Returns:
        the old value