Class ValueInjection<T>

  • Type Parameters:
    T - the value type

    public final class ValueInjection<T>
    extends java.lang.Object
    An injection of a source value into a target injector.
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueInjection​(Value<? extends T> source, Injector<? super T> target)
      Construct a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Value<? extends T> getSource()
      Get the source value.
      Injector<? super T> getTarget()
      Get the target injector.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • source

        private final Value<? extends T> source
      • target

        private final Injector<? super T> target
    • Constructor Detail

      • ValueInjection

        public ValueInjection​(Value<? extends T> source,
                              Injector<? super T> target)
        Construct a new instance.
        Parameters:
        source - the source value
        target - the target injector
    • Method Detail

      • getSource

        public Value<? extends T> getSource()
        Get the source value.
        Returns:
        the source value
      • getTarget

        public Injector<? super T> getTarget()
        Get the target injector.
        Returns:
        the target injector