org.picocontainer.alternatives
Class CachingPicoContainer

java.lang.Object
  extended by org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer
      extended by org.picocontainer.alternatives.CachingPicoContainer
All Implemented Interfaces:
Serializable, Disposable, MutablePicoContainer, PicoContainer, Startable

public class CachingPicoContainer
extends AbstractDelegatingMutablePicoContainer
implements Serializable

The Caching version of DefaultPicoContainer

Version:
$Revision: 2381 $
Author:
Paul Hammant
See Also:
ImplementationHidingCachingPicoContainer, ImplementationHidingPicoContainer, Serialized Form

Constructor Summary
CachingPicoContainer()
          Creates a new container with no parent container.
CachingPicoContainer(ComponentAdapterFactory caf)
          Creates a new container with a parent container.
CachingPicoContainer(ComponentAdapterFactory caf, PicoContainer parent)
          Creates a new container with a parent container.
CachingPicoContainer(PicoContainer parent)
          Creates a new container with a parent container.
 
Method Summary
 MutablePicoContainer makeChildContainer()
          Make a child container, using the same implementation of MutablePicoContainer as the parent.
 
Methods inherited from class org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer
accept, addChildContainer, dispose, equals, getComponentAdapter, getComponentAdapterOfType, getComponentAdapters, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstances, getComponentInstancesOfType, getDelegate, getParent, registerComponent, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentInstance, registerComponentInstance, removeChildContainer, start, stop, unregisterComponent, unregisterComponentByInstance, verify
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingPicoContainer

public CachingPicoContainer(ComponentAdapterFactory caf,
                            PicoContainer parent)
Creates a new container with a parent container.


CachingPicoContainer

public CachingPicoContainer(PicoContainer parent)
Creates a new container with a parent container.


CachingPicoContainer

public CachingPicoContainer(ComponentAdapterFactory caf)
Creates a new container with a parent container.


CachingPicoContainer

public CachingPicoContainer()
Creates a new container with no parent container.

Method Detail

makeChildContainer

public MutablePicoContainer makeChildContainer()
Description copied from interface: MutablePicoContainer
Make a child container, using the same implementation of MutablePicoContainer as the parent. It will have a reference to this as parent. This will list the resulting MPC as a child. Lifecycle events will be cascaded from parent to child as a consequence of this.

Specified by:
makeChildContainer in interface MutablePicoContainer
Returns:
the new child container.


Copyright © 2003-2007 Codehaus. All Rights Reserved.