Class SetterInjection

    • Constructor Detail

      • SetterInjection

        public SetterInjection​(java.lang.String prefix)
      • SetterInjection

        public SetterInjection()
      • SetterInjection

        public SetterInjection​(java.lang.String prefix,
                               java.lang.String notThisOneThough)
        Specify a prefix and an exclusion
        Parameters:
        prefix - the prefix like 'set'
        notThisOneThough - to exclude, like 'setMetaClass' for Groovy
    • Method Detail

      • createComponentAdapter

        public <T> ComponentAdapter<T> createComponentAdapter​(ComponentMonitor monitor,
                                                              LifecycleStrategy lifecycleStrategy,
                                                              java.util.Properties componentProperties,
                                                              java.lang.Object componentKey,
                                                              java.lang.Class<T> componentImplementation,
                                                              Parameter... parameters)
                                                       throws PicoCompositionException
        Create a SetterInjector.
        Parameters:
        monitor -
        lifecycleStrategy -
        componentProperties -
        componentKey - The component's key
        componentImplementation - The class of the bean.
        parameters - Any parameters for the setters. If null the adapter solves the dependencies for all setters internally. Otherwise the number parameters must match the number of the setter.
        Returns:
        Returns a new SetterInjector.
        Throws:
        PicoCompositionException - if dependencies cannot be solved