org.nanocontainer.script.bsh
Class BeanShellContainerBuilder

java.lang.Object
  extended byorg.nanocontainer.integrationkit.LifecycleContainerBuilder
      extended byorg.nanocontainer.script.ScriptedContainerBuilder
          extended byorg.nanocontainer.script.bsh.BeanShellContainerBuilder
All Implemented Interfaces:
org.nanocontainer.integrationkit.ContainerBuilder

public class BeanShellContainerBuilder
extends org.nanocontainer.script.ScriptedContainerBuilder

{@inheritDoc} The script has to assign a "pico" variable with an instance of PicoContainer. There is an implicit variable named "parent" that may contain a reference to a parent container. It is recommended to use this as a constructor argument to the instantiated PicoContainer.

Version:
$Revision: 3144 $
Author:
Aslak Hellesøy, Michael Rimov, Mauro Talevi

Constructor Summary
BeanShellContainerBuilder(java.io.Reader script, java.lang.ClassLoader classLoader)
           
BeanShellContainerBuilder(java.net.URL script, java.lang.ClassLoader classLoader)
           
 
Method Summary
protected  org.picocontainer.PicoContainer createContainerFromScript(org.picocontainer.PicoContainer parentContainer, java.lang.Object assemblyScope)
           
 
Methods inherited from class org.nanocontainer.script.ScriptedContainerBuilder
composeContainer, createContainer, getClassLoader, getScriptInputStream, getScriptReader
 
Methods inherited from class org.nanocontainer.integrationkit.LifecycleContainerBuilder
autoStart, buildContainer, killContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanShellContainerBuilder

public BeanShellContainerBuilder(java.io.Reader script,
                                 java.lang.ClassLoader classLoader)

BeanShellContainerBuilder

public BeanShellContainerBuilder(java.net.URL script,
                                 java.lang.ClassLoader classLoader)
Method Detail

createContainerFromScript

protected org.picocontainer.PicoContainer createContainerFromScript(org.picocontainer.PicoContainer parentContainer,
                                                                    java.lang.Object assemblyScope)


Copyright © 2003-2007 Codehaus. All Rights Reserved.