| org.picocontainer.injectors.AbstractInjector org.picocontainer.injectors.IterativeInjector org.picocontainer.injectors.SetterInjector
All known Subclasses: org.picocontainer.injectors.AnnotatedMethodInjector,
SetterInjector | public class SetterInjector extends IterativeInjector (Code) | | Instantiates components using empty constructors and
Setter Injection.
For easy setting of primitive properties, also see
PropertyApplicator .
Note that this class doesn't cache instances. If you want caching,
use a
Cached around this one.
author: Aslak Hellesøy author: Jörg Schaible author: Mauro Talevi author: Paul Hammant |
SetterInjector | public SetterInjector(Object componentKey, Class componentImplementation, Parameter[] parameters, ComponentMonitor monitor, LifecycleStrategy lifecycleStrategy, String setterMethodPrefix, boolean useNames) throws NotConcreteRegistrationException(Code) | | Constructs a SetterInjector
Parameters: componentKey - the search key for this implementation Parameters: componentImplementation - the concrete implementation Parameters: parameters - the parameters to use for the initialization Parameters: monitor - the component monitor used by this addAdapter Parameters: lifecycleStrategy - the component lifecycle strategy used by this addAdapter Parameters: setterMethodPrefix - throws: org.picocontainer.injectors.AbstractInjector.NotConcreteRegistrationException - if the implementation is not a concrete class. throws: NullPointerException - if one of the parameters is null |
isInjectorMethod | protected boolean isInjectorMethod(Method method)(Code) | | |
Methods inherited from org.picocontainer.injectors.AbstractInjector | public void accept(PicoVisitor visitor)(Code)(Java Doc) protected Class> box(Class> parameterType)(Code)(Java Doc) protected T caughtIllegalAccessException(ComponentMonitor componentMonitor, Constructor<T> constructor, IllegalAccessException e, PicoContainer container)(Code)(Java Doc) protected Object caughtIllegalAccessException(ComponentMonitor componentMonitor, Member member, Object componentInstance, IllegalAccessException e)(Code)(Java Doc) protected T caughtInstantiationException(ComponentMonitor componentMonitor, Constructor<T> constructor, InstantiationException e, PicoContainer container)(Code)(Java Doc) protected T caughtInvocationTargetException(ComponentMonitor componentMonitor, Member member, Object componentInstance, InvocationTargetException e)(Code)(Java Doc) protected Parameter[] createDefaultParameters(Class[] parameters)(Code)(Java Doc) public void dispose(Object component)(Code)(Java Doc) public boolean hasLifecycle(Class> type)(Code)(Java Doc) protected T newInstance(Constructor<T> constructor, Object[] parameters) throws InstantiationException, IllegalAccessException, InvocationTargetException(Code)(Java Doc) public void start(Object component)(Code)(Java Doc) public void stop(Object component)(Code)(Java Doc) public boolean useNames()(Code)(Java Doc) abstract public void verify(PicoContainer container) throws PicoCompositionException(Code)(Java Doc)
|
|
|