org.picocontainer.defaults
Class AbstractComponentAdapter

java.lang.Object
  extended byorg.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

Constructor Summary
protected AbstractComponentAdapter(Object componentKey, Class componentImplementation)
           
 
Method Summary
 Class getComponentImplementation()
           
 Object getComponentKey()
           
 PicoContainer getContainer()
           
 void setContainer(PicoContainer picoContainer)
          Sets the container in which this instance is registered, called by the container upon registration.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.picocontainer.ComponentAdapter
getComponentInstance, verify
 

Constructor Detail

AbstractComponentAdapter

protected AbstractComponentAdapter(Object componentKey,
                                   Class componentImplementation)
                            throws AssignabilityRegistrationException,
                                   NotConcreteRegistrationException
Method Detail

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.