Class RetainingInjector<T>

    • Constructor Detail

      • RetainingInjector

        public RetainingInjector()
        Deprecated.
    • Method Detail

      • uninject

        public void uninject()
        Deprecated.
        Uninject the given value (in other words, cancel or undo a previous injection). Only called after inject() has been called.
        Specified by:
        uninject in interface Injector<T>
      • getStoredValue

        protected Value<T> getStoredValue()
        Deprecated.
        Get the value object stored in this injector.
        Returns:
        the value object
      • setStoredValue

        protected Value<T> setStoredValue​(Value<T> value)
        Deprecated.
        Set the value object stored in this injector (must not be null).
        Parameters:
        value - the value object (must not be null)
        Returns:
        the old value object, or null if none was stored