Class InjectedValue<T>

    • Constructor Detail

      • InjectedValue

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

      • getValue

        public T getValue()
                   throws IllegalStateException
        Deprecated.
        Get the actual dependency value.
        Specified by:
        getValue in interface Value<T>
        Returns:
        the actual dependency value
        Throws:
        IllegalStateException - if the value is time-sensitive and the current state does not allow retrieval.
      • setValue

        public void setValue​(Value<T> value)
        Deprecated.
        Set the value to be injected to a Value instance.
        Parameters:
        value - the value to set, cannot be null (though it may be Values.nullValue())
      • getOptionalValue

        public T getOptionalValue()
        Deprecated.
        Get the value if it was injected, or return null if it was not.
        Returns:
        the value or null if it was not injected