picocontainer.aggregated
Class AggregatedContainersContainer
java.lang.Object
picocontainer.defaults.DefaultPicoContainer
picocontainer.aggregated.AggregatedContainersContainer
- All Implemented Interfaces:
- ClassRegistrationPicoContainer, PicoContainer
- Direct Known Subclasses:
- AggregatedContainersContainer.Filter
- public class AggregatedContainersContainer
- extends DefaultPicoContainer
AggregatedContainersContainer aggregates the the contents of more
than one container together for the sake of a single list of
components. This list may be used as the parent container for
another PicoContainer. This will result in directive graphs of
containers/components rather than just trees.
It is not in itself, a Pico component (the array in the
constructor puts paid to that).
Methods inherited from class picocontainer.defaults.DefaultPicoContainer |
addParameterToComponent, createDefaultParameter, getAggregateComponentProxy, getAggregateComponentProxy, getComponents, hasComponent, registerComponent, registerComponent, registerComponent, registerComponent, registerComponent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AggregatedContainersContainer
public AggregatedContainersContainer(PicoContainer[] containers)
getComponent
public Object getComponent(Class componentType)
- Description copied from interface:
PicoContainer
- Get a component for a component type.
- Specified by:
getComponent
in interface PicoContainer
- Overrides:
getComponent
in class DefaultPicoContainer
getComponentTypes
public Class[] getComponentTypes()
- Description copied from interface:
PicoContainer
- Get all component types (random order).
- Specified by:
getComponentTypes
in interface PicoContainer
- Overrides:
getComponentTypes
in class DefaultPicoContainer
instantiateComponents
public void instantiateComponents()
throws PicoInstantiationException
- Description copied from interface:
PicoContainer
- Initialize the container.
- Specified by:
instantiateComponents
in interface PicoContainer
- Overrides:
instantiateComponents
in class DefaultPicoContainer
- Throws:
PicoInstantiationException
Copyright © 2003 Codehaus. All Rights Reserved.