Class AddMethodInjector<T>

    • Constructor Detail

      • AddMethodInjector

        public AddMethodInjector​(Value<?> target,
                                 Method addMethod,
                                 Method removeMethod)
        Deprecated.
        Construct a new instance.
        Parameters:
        target - the target upon which the add/remove methods should be invoked
        addMethod - the add method
        removeMethod - the remove method
    • Method Detail

      • inject

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