Class SetMethodInjector<T>

    • Constructor Detail

      • SetMethodInjector

        public SetMethodInjector​(Value<?> target,
                                 Method method)
        Deprecated.
        Construct a new instance.
        Parameters:
        target - the object upon which the method is to be called
        method - the method to invoke
    • Method Detail

      • create

        public static <T> Injector<T> create​(Value<?> target,
                                             Method method)
        Deprecated.
        Construct a new instance.
        Parameters:
        target - the object upon which the method is to be called
        method - the method to invoke
        Returns:
        the new instance
      • inject

        public void inject​(T value)
        Deprecated.
        Inject the given value.
        Specified by:
        inject in interface Injector<T>
        Parameters:
        value - the value
      • 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>