public class SetterInjection extends AbstractInjectionFactory
InjectionFactory for JavaBeans.
The factory creates SetterInjector.| Constructor and Description |
|---|
SetterInjection() |
SetterInjection(String prefix) |
SetterInjection(String prefix,
String notThisOneThough)
Specify a prefix and an exclusion
|
| Modifier and Type | Method and Description |
|---|---|
<T> ComponentAdapter<T> |
createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
Create a
SetterInjector. |
SetterInjection |
withInjectionOptional() |
accept, verify, wrapLifeCyclepublic SetterInjection(String prefix)
public SetterInjection()
public SetterInjection(String prefix, String notThisOneThough)
prefix - the prefix like 'set'notThisOneThough - to exclude, like 'setMetaClass' for Groovypublic <T> ComponentAdapter<T> createComponentAdapter(ComponentMonitor monitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class<T> componentImplementation, Parameter... parameters) throws PicoCompositionException
SetterInjector.monitor - lifecycleStrategy - componentProperties - componentKey - The component's keycomponentImplementation - 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.SetterInjector.PicoCompositionException - if dependencies cannot be solvedpublic SetterInjection withInjectionOptional()
Copyright © 2003-2014 Codehaus. All Rights Reserved.