org.picocontainer.defaults
Class DefaultComponentAdapter
java.lang.Object
org.picocontainer.defaults.AbstractComponentAdapter
org.picocontainer.defaults.TransientComponentAdapter
org.picocontainer.defaults.DefaultComponentAdapter
- All Implemented Interfaces:
- ComponentAdapter, Serializable
- public class DefaultComponentAdapter
- extends TransientComponentAdapter
- Version:
- $Revision: 1.17 $
- Author:
- Jon Tirsén
- See Also:
- Serialized Form
DefaultComponentAdapter
public DefaultComponentAdapter(Object componentKey,
Class componentImplementation,
Parameter[] parameters)
throws AssignabilityRegistrationException,
NotConcreteRegistrationException
- Explicitly specifies parameters, if null uses default parameters.
- Parameters:
componentKey
- componentImplementation
- parameters
-
DefaultComponentAdapter
public DefaultComponentAdapter(Object componentKey,
Class componentImplementation)
throws AssignabilityRegistrationException,
NotConcreteRegistrationException
- Use default parameters.
- Parameters:
componentKey
- componentImplementation
-
getComponentInstance
public Object getComponentInstance(MutablePicoContainer picoContainer)
throws PicoInitializationException,
PicoIntrospectionException,
AssignabilityRegistrationException,
NotConcreteRegistrationException
- Description copied from interface:
ComponentAdapter
- Gets the component instance. Subsequent calls to this method
with the same arguments should return the same object (it should
be caching).
This method should also register the instantiated component with the
pico container.
- Specified by:
getComponentInstance
in interface ComponentAdapter
- Overrides:
getComponentInstance
in class TransientComponentAdapter
- Throws:
PicoInitializationException
PicoIntrospectionException
AssignabilityRegistrationException
NotConcreteRegistrationException
Copyright © 2003 Codehaus. All Rights Reserved.