Class MethodInjector<T>

    • Constructor Detail

      • MethodInjector

        public MethodInjector​(Method method,
                              Value<?> targetValue,
                              Value<?> injectedValue,
                              List<? extends Value<?>> parameterList)
        Construct a new instance.
        method - the method to invoke
        targetValue - the value of the invocation target (the object being called upon) - use Values.nullValue() for static methods
        injectedValue - the value to use for Values.injectedValue() on uninjection (usually Values.nullValue())
        parameterList - the list of parameter values (any null parameters should use Values.nullValue())
    • Method Detail

      • uninject

        public void uninject()
        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>