/** * Creates a ConstructorInjector * * @param monitor the component monitor used by this addAdapter * @param useNames use argument names when looking up dependencies * @param rememberChosenCtor remember the chosen constructor (to speed up second/subsequent calls) * @param key the search key for this implementation * @param impl the concrete implementation * @param parameters the parameters to use for the initialization * @throws com.picocontainer.injectors.AbstractInjector.NotConcreteRegistrationException * if the implementation is not a concrete class. * @throws NullPointerException if one of the parameters is <code>null</code> */ public ConstructorInjector(final ComponentMonitor monitor, final boolean useNames, final boolean rememberChosenCtor, final Object key, final Class<T> impl, final ConstructorParameters constructorParams) throws NotConcreteRegistrationException { super(key, impl, toAccessibleObjectParameterSetArray(constructorParams), monitor, useNames, true); this.rememberChosenConstructor = rememberChosenCtor; }
/** * Creates a ConstructorInjector * * @param monitor the component monitor used by this addAdapter * @param useNames use argument names when looking up dependencies * @param rememberChosenCtor remember the chosen constructor (to speed up second/subsequent calls) * @param key the search key for this implementation * @param impl the concrete implementation * @param parameters the parameters to use for the initialization * @throws com.picocontainer.injectors.AbstractInjector.NotConcreteRegistrationException * if the implementation is not a concrete class. * @throws NullPointerException if one of the parameters is <code>null</code> */ public ConstructorInjector(final ComponentMonitor monitor, final boolean useNames, final boolean rememberChosenCtor, final Object key, final Class<T> impl, final ConstructorParameters constructorParams) throws NotConcreteRegistrationException { super(key, impl, toAccessibleObjectParameterSetArray(constructorParams), monitor, useNames, true); this.rememberChosenConstructor = rememberChosenCtor; }