org.picocontainer.defaults
Class AbstractComponentAdapter
java.lang.Object
org.picocontainer.defaults.AbstractComponentAdapter
- All Implemented Interfaces:
- ComponentAdapter, java.io.Serializable
- Direct Known Subclasses:
- InstanceComponentAdapter, InstantiatingComponentAdapter
- public abstract class AbstractComponentAdapter
- extends java.lang.Object
- implements ComponentAdapter, java.io.Serializable
- Version:
- $Revision: 1.11 $
- Author:
- Aslak Hellesøy, Jon Tirsén
- See Also:
- Serialized Form
Constructor Summary |
protected |
AbstractComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractComponentAdapter
protected AbstractComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation)
throws AssignabilityRegistrationException,
NotConcreteRegistrationException
getComponentKey
public java.lang.Object getComponentKey()
- Specified by:
getComponentKey
in interface ComponentAdapter
- Returns:
- the component's key.
getComponentImplementation
public java.lang.Class getComponentImplementation()
- Specified by:
getComponentImplementation
in interface ComponentAdapter
- Returns:
- the component's implementation class.
toString
public java.lang.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.