org.picocontainer.defaults
Class BeanComponentAdapter
java.lang.Object
org.picocontainer.defaults.AbstractComponentAdapter
org.picocontainer.defaults.InstantiatingComponentAdapter
org.picocontainer.defaults.BeanComponentAdapter
- All Implemented Interfaces:
- ComponentAdapter, java.io.Serializable
- public class BeanComponentAdapter
- extends InstantiatingComponentAdapter
{@inheritDoc}
Instantiates components using Setter Injection.
- Version:
- $Revision: 1.7 $
- Author:
- Aslak Hellesøy
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BeanComponentAdapter
public BeanComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters)
getMostSatisfiableDependencyTypes
protected java.lang.Class[] getMostSatisfiableDependencyTypes(PicoContainer dependencyContainer)
throws PicoIntrospectionException,
AmbiguousComponentResolutionException,
AssignabilityRegistrationException,
NotConcreteRegistrationException
- Specified by:
getMostSatisfiableDependencyTypes
in class InstantiatingComponentAdapter
- Throws:
PicoIntrospectionException
AmbiguousComponentResolutionException
AssignabilityRegistrationException
NotConcreteRegistrationException
instantiateComponent
protected java.lang.Object instantiateComponent(ComponentAdapter[] adapterDependencies,
PicoContainer dependencyContainer)
throws PicoInitializationException,
PicoIntrospectionException,
AssignabilityRegistrationException,
NotConcreteRegistrationException
- Overrides:
instantiateComponent
in class InstantiatingComponentAdapter
- Throws:
PicoInitializationException
PicoIntrospectionException
AssignabilityRegistrationException
NotConcreteRegistrationException
getGreediestSatisifableConstructor
protected java.lang.reflect.Constructor getGreediestSatisifableConstructor(PicoContainer dependencyContainer)
throws PicoIntrospectionException,
UnsatisfiableDependenciesException,
AmbiguousComponentResolutionException,
AssignabilityRegistrationException,
NotConcreteRegistrationException
- Specified by:
getGreediestSatisifableConstructor
in class InstantiatingComponentAdapter
- Throws:
PicoIntrospectionException
UnsatisfiableDependenciesException
AmbiguousComponentResolutionException
AssignabilityRegistrationException
NotConcreteRegistrationException
getConstructorArguments
protected java.lang.Object[] getConstructorArguments(ComponentAdapter[] adapterDependencies)
- Specified by:
getConstructorArguments
in class InstantiatingComponentAdapter
Copyright © 2003-2004 Codehaus. All Rights Reserved.