public class SetterInjectionComponentAdapterFactory extends MonitoringComponentAdapterFactory
ComponentAdapterFactory for JavaBeans.
The factory creates SetterInjectionComponentAdapter.| Modifier and Type | Field and Description |
|---|---|
private boolean |
allowNonPublicClasses |
private LifecycleStrategy |
lifecycleStrategy |
| Constructor and Description |
|---|
SetterInjectionComponentAdapterFactory() |
SetterInjectionComponentAdapterFactory(boolean allowNonPublicClasses) |
SetterInjectionComponentAdapterFactory(boolean allowNonPublicClasses,
LifecycleStrategy lifecycleStrategy) |
| Modifier and Type | Method and Description |
|---|---|
ComponentAdapter |
createComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters)
Create a
SetterInjectionComponentAdapter. |
changeMonitor, currentMonitorprivate final boolean allowNonPublicClasses
private LifecycleStrategy lifecycleStrategy
public SetterInjectionComponentAdapterFactory(boolean allowNonPublicClasses,
LifecycleStrategy lifecycleStrategy)
public SetterInjectionComponentAdapterFactory(boolean allowNonPublicClasses)
public SetterInjectionComponentAdapterFactory()
public ComponentAdapter createComponentAdapter(java.lang.Object componentKey, java.lang.Class componentImplementation, Parameter[] parameters) throws PicoIntrospectionException, AssignabilityRegistrationException, NotConcreteRegistrationException
SetterInjectionComponentAdapter.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.SetterInjectionComponentAdapter.PicoIntrospectionException - if dependencies cannot be solvedAssignabilityRegistrationException - if the componentKey is a type
that does not match the implementationNotConcreteRegistrationException - if the implementation is an interface or an
abstract class.