org.picocontainer.defaults
Class SetterInjectionComponentAdapterFactory
java.lang.Object
org.picocontainer.defaults.MonitoringComponentAdapterFactory
org.picocontainer.defaults.SetterInjectionComponentAdapterFactory
- All Implemented Interfaces:
- ComponentAdapterFactory, ComponentMonitorStrategy, Serializable
- public class SetterInjectionComponentAdapterFactory
- extends MonitoringComponentAdapterFactory
A ComponentAdapterFactory for JavaBeans.
The factory creates SetterInjectionComponentAdapter.
- Version:
- $Revision: 2768 $
- Author:
- Jörg Schaible
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetterInjectionComponentAdapterFactory
public SetterInjectionComponentAdapterFactory(boolean allowNonPublicClasses,
LifecycleStrategy lifecycleStrategy)
SetterInjectionComponentAdapterFactory
public SetterInjectionComponentAdapterFactory(boolean allowNonPublicClasses)
SetterInjectionComponentAdapterFactory
public SetterInjectionComponentAdapterFactory()
createComponentAdapter
public ComponentAdapter createComponentAdapter(Object componentKey,
Class componentImplementation,
Parameter[] parameters)
throws PicoIntrospectionException,
AssignabilityRegistrationException,
NotConcreteRegistrationException
- Create a
SetterInjectionComponentAdapter.
- Parameters:
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.
- Returns:
- Returns a new
SetterInjectionComponentAdapter.
- Throws:
PicoIntrospectionException - if dependencies cannot be solved
AssignabilityRegistrationException - if the componentKey is a type
that does not match the implementation
NotConcreteRegistrationException - if the implementation is an interface or an
abstract class.
Copyright © 2003-2007 Codehaus. All Rights Reserved.