org.picocontainer.defaults
Class AbstractComponentAdapter
java.lang.Object
org.picocontainer.defaults.AbstractComponentAdapter
- All Implemented Interfaces:
- ComponentAdapter, Serializable
- Direct Known Subclasses:
- InstanceComponentAdapter, InstantiatingComponentAdapter
- public abstract class AbstractComponentAdapter
- extends Object
- implements ComponentAdapter, Serializable
- Version:
- $Revision: 1.10 $
- Author:
- Aslak Hellesøy, Jon Tirsén
- See Also:
- Serialized Form
AbstractComponentAdapter
protected AbstractComponentAdapter(Object componentKey,
Class componentImplementation)
throws AssignabilityRegistrationException,
NotConcreteRegistrationException
getComponentKey
public Object getComponentKey()
- Specified by:
getComponentKey
in interface ComponentAdapter
- Returns:
- the component's key.
getComponentImplementation
public Class getComponentImplementation()
- Specified by:
getComponentImplementation
in interface ComponentAdapter
- Returns:
- the component's implementation class.
toString
public String toString()
getContainer
public PicoContainer getContainer()
- Specified by:
getContainer
in interface ComponentAdapter
setContainer
public void setContainer(PicoContainer picoContainer)
- Description copied from interface:
ComponentAdapter
- Sets the container in which this instance is registered, called by the container upon
registration.
- Specified by:
setContainer
in interface ComponentAdapter
- Parameters:
picoContainer
-
Copyright © 2003-2004 Codehaus. All Rights Reserved.