| java.lang.Object org.picocontainer.adapters.AbstractAdapter
All known Subclasses: org.picocontainer.gems.adapters.StaticFactoryAdapter,
AbstractAdapter | abstract public class AbstractAdapter implements ComponentAdapter<T>,ComponentMonitorStrategy,Serializable(Code) | | Base class for a ComponentAdapter with general functionality.
This implementation provides basic checks for a healthy implementation of a ComponentAdapter.
It does not allow to use null for the component key or the implementation,
ensures that the implementation is a concrete class and that the key is assignable from the
implementation if the key represents a type.
author: Paul Hammant author: Aslak Hellesøy author: Jon Tirsén |
AbstractAdapter | public AbstractAdapter(Object componentKey, Class componentImplementation)(Code) | | Constructs a new ComponentAdapter for the given key and implementation.
Parameters: componentKey - the search key for this implementation Parameters: componentImplementation - the concrete implementation |
AbstractAdapter | public AbstractAdapter(Object componentKey, Class componentImplementation, ComponentMonitor monitor)(Code) | | Constructs a new ComponentAdapter for the given key and implementation.
Parameters: componentKey - the search key for this implementation Parameters: componentImplementation - the concrete implementation Parameters: monitor - the component monitor used by this ComponentAdapter |
checkTypeCompatibility | protected void checkTypeCompatibility()(Code) | | |
currentMonitor | public ComponentMonitor currentMonitor()(Code) | | Returns the monitor currently used
The ComponentMonitor currently used |
findAdapterOfType | final public U findAdapterOfType(Class<U> componentAdapterType)(Code) | | |
|
|