org.picocontainer.extras
Class DecoratingComponentAdapter
java.lang.Object
org.picocontainer.extras.DecoratingComponentAdapter
- All Implemented Interfaces:
- ComponentAdapter
- Direct Known Subclasses:
- ImplementationHidingComponentAdapterFactory.Adapter, InvokingComponentAdapterFactory.Adapter
- public class DecoratingComponentAdapter
- extends Object
- implements ComponentAdapter
- Version:
- $Revision: 1.8 $
- Author:
- Jon Tirsen (tirsen@codehaus.org), Aslak Hellesoy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecoratingComponentAdapter
public DecoratingComponentAdapter(ComponentAdapter delegate)
getComponentKey
public Object getComponentKey()
- Description copied from interface:
ComponentAdapter
- The component's key.
- Specified by:
getComponentKey
in interface ComponentAdapter
- Returns:
getComponentImplementation
public Class getComponentImplementation()
- Description copied from interface:
ComponentAdapter
- The component's implementation class.
- Specified by:
getComponentImplementation
in interface ComponentAdapter
- Returns:
getComponentInstance
public Object getComponentInstance(MutablePicoContainer componentRegistry)
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
- Parameters:
componentRegistry
- registries where the adapter can look for
dependent component instances
- Returns:
- the component instance
- Throws:
PicoInitializationException
- if the component couldn't be instantiated
PicoIntrospectionException
AssignabilityRegistrationException
NotConcreteRegistrationException
getDelegate
public ComponentAdapter getDelegate()
Copyright © 2003 Codehaus. All Rights Reserved.