public class AnnotatedMethodInjection extends AbstractInjectionFactory
InjectionFactory for Guice-style annotated methods.
The factory creates AnnotatedMethodInjector.| Constructor and Description |
|---|
AnnotatedMethodInjection() |
AnnotatedMethodInjection(Class<? extends Annotation> injectionAnnotation,
boolean useNames) |
| 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. |
accept, verify, wrapLifeCyclepublic AnnotatedMethodInjection(Class<? extends Annotation> injectionAnnotation, boolean useNames)
public AnnotatedMethodInjection()
public <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 solved or if the implementation is an interface or an
abstract class.Copyright © 2003-2014 Codehaus. All Rights Reserved.