Class SetterInjector<T>

    • Field Detail

      • prefix

        protected final java.lang.String prefix
    • Constructor Detail

      • SetterInjector

        public SetterInjector​(java.lang.Object componentKey,
                              java.lang.Class componentImplementation,
                              Parameter[] parameters,
                              ComponentMonitor monitor,
                              java.lang.String prefix,
                              java.lang.String notThisOneThough,
                              boolean optional,
                              boolean useNames)
                       throws AbstractInjector.NotConcreteRegistrationException
        Constructs a SetterInjector
        Parameters:
        componentKey - the search key for this implementation
        componentImplementation - the concrete implementation
        parameters - the parameters to use for the initialization
        monitor - the component monitor used by this addAdapter
        prefix - the prefix to use (e.g. 'set')
        notThisOneThough - a setter name that's not for injecting through
        optional - not all setters need to be injected
        useNames -
        Throws:
        AbstractInjector.NotConcreteRegistrationException - if the implementation is not a concrete class.
        java.lang.NullPointerException - if one of the parameters is null
    • Method Detail

      • memberInvocationReturn

        protected java.lang.Object memberInvocationReturn​(java.lang.Object lastReturn,
                                                          java.lang.reflect.AccessibleObject member,
                                                          java.lang.Object instance)
        Specified by:
        memberInvocationReturn in class IterativeInjector<T>
      • injectIntoMember

        protected java.lang.Object injectIntoMember​(java.lang.reflect.AccessibleObject member,
                                                    java.lang.Object componentInstance,
                                                    java.lang.Object toInject)
                                             throws java.lang.IllegalAccessException,
                                                    java.lang.reflect.InvocationTargetException
        Specified by:
        injectIntoMember in class IterativeInjector<T>
        Throws:
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • getInjectorPrefix

        protected java.lang.String getInjectorPrefix()
      • unsatisfiedDependencies

        protected void unsatisfiedDependencies​(PicoContainer container,
                                               java.util.Set<java.lang.reflect.Type> unsatisfiableDependencyTypes,
                                               java.util.List<java.lang.reflect.AccessibleObject> unsatisfiableDependencyMembers)
        Specified by:
        unsatisfiedDependencies in class IterativeInjector<T>