picocontainer.aggregated
Class AggregatedContainersContainer

java.lang.Object
  extended bypicocontainer.defaults.DefaultPicoContainer
      extended bypicocontainer.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).


Nested Class Summary
static class AggregatedContainersContainer.Filter
           
 
Nested classes inherited from class picocontainer.defaults.DefaultPicoContainer
DefaultPicoContainer.Default
 
Field Summary
 
Fields inherited from class picocontainer.defaults.DefaultPicoContainer
orderedComponents, unmanagedComponents
 
Constructor Summary
AggregatedContainersContainer(PicoContainer[] containers)
           
 
Method Summary
 Object getComponent(Class componentType)
          Get a component for a component type.
 Class[] getComponentTypes()
          Get all component types (random order).
 void instantiateComponents()
          Initialize the container.
 
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
 

Constructor Detail

AggregatedContainersContainer

public AggregatedContainersContainer(PicoContainer[] containers)
Method Detail

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.