org.nanocontainer.nanowar
Class ScopedContainerComposer

java.lang.Object
  extended by org.nanocontainer.nanowar.ScopedContainerComposer
All Implemented Interfaces:
org.nanocontainer.integrationkit.ContainerComposer

public class ScopedContainerComposer
extends Object
implements org.nanocontainer.integrationkit.ContainerComposer

ScopedContainerComposer is a ContainerComposer which can build PicoContainers for different web context scopes: application, session and request.

The configuration for each scope is contained in one of more NanoContainer scripts. The ContainerBuilder used to build the PicoContainer and the names of scoped script files are configurable via a ScopedContainerConfigurator.

Note: ScopedContainerComposer requires ContainerBuilders that also implement ContainerPopulator, as this is used by the ContainerRecorder proxy.

Version:
$Revision: 2659 $
Author:
Mauro Talevi, Konstantin Pribluda ( konstantin.pribluda[at]infodesire.com )

Constructor Summary
ScopedContainerComposer()
          Creates a default ScopedContainerComposer
ScopedContainerComposer(org.picocontainer.PicoContainer configuration)
          Creates a configurable ScopedContainerComposer
 
Method Summary
 void composeContainer(org.picocontainer.MutablePicoContainer container, Object scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopedContainerComposer

public ScopedContainerComposer()
                        throws ClassNotFoundException
Creates a default ScopedContainerComposer

Throws:
ClassNotFoundException

ScopedContainerComposer

public ScopedContainerComposer(org.picocontainer.PicoContainer configuration)
                        throws ClassNotFoundException
Creates a configurable ScopedContainerComposer

Parameters:
configuration - the PicoContainer holding the configuration
Throws:
ClassNotFoundException
Method Detail

composeContainer

public void composeContainer(org.picocontainer.MutablePicoContainer container,
                             Object scope)
Specified by:
composeContainer in interface org.nanocontainer.integrationkit.ContainerComposer


Copyright © 2003-2009 Codehaus. All Rights Reserved.