Class SingleMemberInjector<T>

All Implemented Interfaces:
Serializable, ComponentAdapter<T>, ComponentMonitorStrategy, Injector<T>
Direct Known Subclasses:
ConstructorInjector, MethodInjector

public abstract class SingleMemberInjector<T> extends AbstractInjector<T>
Injection will happen in a single member function on the component.
Author:
Paul Hammant
See Also:
  • Constructor Details

  • Method Details

    • getParanamer

      protected com.thoughtworks.paranamer.Paranamer getParanamer()
    • getMemberArguments

      protected Object[] getMemberArguments(PicoContainer container, AccessibleObject member, Type[] parameterTypes, Annotation[] bindings)
    • boxParameters

      protected void boxParameters(Type[] parameterTypes)
    • getParameter

      protected Object getParameter(PicoContainer container, AccessibleObject member, int i, Type parameterType, Annotation binding, Parameter currentParameter, ComponentAdapter<?> injecteeAdapter)
    • nullCheck

      protected void nullCheck(AccessibleObject member, int i, ParameterNameBinding expectedNameBinding, Object result)
    • isNullParamAllowed

      protected boolean isNullParamAllowed(AccessibleObject member, int i)
      Checks to see if a null parameter is allowed in the given constructor/field/method. The default version allows null if the target object is not a primitive type.
      Parameters:
      member - constructor method or field
      i - parameter #.
      Returns:
      true if the null parameter might be allowed.
    • getBindings

      protected Annotation[] getBindings(Annotation[][] annotationss)