org.picocontainer.defaults
Class CachingComponentAdapter
java.lang.Object
org.picocontainer.defaults.DecoratingComponentAdapter
org.picocontainer.defaults.CachingComponentAdapter
- All Implemented Interfaces:
- ComponentAdapter, Serializable
- public class CachingComponentAdapter
- extends DecoratingComponentAdapter
This ComponentAdapter caches the instance.
- Version:
- $Revision: 1.11 $
- See Also:
- Serialized Form
CachingComponentAdapter
public CachingComponentAdapter(ComponentAdapter delegate)
CachingComponentAdapter
public CachingComponentAdapter(ComponentAdapter delegate,
ObjectReference instanceReference)
getComponentInstance
public Object getComponentInstance(PicoContainer container)
throws PicoInitializationException,
PicoIntrospectionException,
AssignabilityRegistrationException,
NotConcreteRegistrationException
- Description copied from interface:
ComponentAdapter
- Retrieve the component instance. This method will usually create a new instance each time it is called, but that
is not required. For example,
CachingComponentAdapter
will always return the
same instance.
- Specified by:
getComponentInstance
in interface ComponentAdapter
- Overrides:
getComponentInstance
in class DecoratingComponentAdapter
- Throws:
PicoInitializationException
PicoIntrospectionException
AssignabilityRegistrationException
NotConcreteRegistrationException
Copyright © 2003-2004 Codehaus. All Rights Reserved.