org.picocontainer.extras
Class DelegatingPicoContainer
java.lang.Object
org.picocontainer.defaults.AbstractPicoContainer
org.picocontainer.defaults.DefaultPicoContainer
org.picocontainer.extras.DelegatingPicoContainer
- All Implemented Interfaces:
- MutablePicoContainer, PicoContainer, Serializable
- public class DelegatingPicoContainer
- extends DefaultPicoContainer
DelegatingPicoContainer is a special PicoContainer that will first look inside itself
for a component, and if it can't find it, it will ask the delegate(s).
This can be used to create trees or graphs of connected containers.
It replaces the old HierarchicalComponentRegistry and
CompositePicoContainer.
- Version:
- $Revision: 1.2 $
- Author:
- Paul Hammant, Aslak Hellesøy
- See Also:
- Serialized Form
Methods inherited from class org.picocontainer.defaults.AbstractPicoContainer |
addOrderedComponentInstance, findComponentInstance, findImplementingComponentAdapter, getComponentInstance, getComponentInstances, getComponentMulticaster, getComponentMulticaster, getOrderedComponents, hasComponent, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentInstance, registerComponentInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingPicoContainer
public DelegatingPicoContainer(ComponentAdapterFactory componentAdapterFactory,
MutablePicoContainer[] delegates)
DelegatingPicoContainer
public DelegatingPicoContainer(ComponentAdapterFactory componentAdapterFactory,
MutablePicoContainer delegate)
DelegatingPicoContainer
public DelegatingPicoContainer(MutablePicoContainer[] delegates)
DelegatingPicoContainer
public DelegatingPicoContainer(MutablePicoContainer delegate)
getComponentKeys
public Collection getComponentKeys()
- Specified by:
getComponentKeys
in interface PicoContainer
- Overrides:
getComponentKeys
in class DefaultPicoContainer
findComponentAdapter
public ComponentAdapter findComponentAdapter(Object componentKey)
throws AmbiguousComponentResolutionException
- Specified by:
findComponentAdapter
in interface MutablePicoContainer
- Overrides:
findComponentAdapter
in class DefaultPicoContainer
- Throws:
AmbiguousComponentResolutionException
Copyright © 2003 Codehaus. All Rights Reserved.