org.picocontainer.script.bsh
Class BeanShellContainerBuilder

java.lang.Object
  extended by org.picocontainer.script.AbstractContainerBuilder
      extended by org.picocontainer.script.ScriptedContainerBuilder
          extended by org.picocontainer.script.bsh.BeanShellContainerBuilder
All Implemented Interfaces:
ContainerBuilder

public class BeanShellContainerBuilder
extends ScriptedContainerBuilder

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.

Author:
Aslak Hellesøy, Michael Rimov, Mauro Talevi

Constructor Summary
BeanShellContainerBuilder(Reader script, ClassLoader classLoader)
           
BeanShellContainerBuilder(Reader script, ClassLoader classLoader, LifecycleMode lifecycleMode)
           
BeanShellContainerBuilder(URL script, ClassLoader classLoader)
           
BeanShellContainerBuilder(URL script, ClassLoader classLoader, LifecycleMode lifecycleMode)
           
 
Method Summary
protected  org.picocontainer.PicoContainer createContainerFromScript(org.picocontainer.PicoContainer parentContainer, Object assemblyScope)
           
 
Methods inherited from class org.picocontainer.script.ScriptedContainerBuilder
createContainer, getClassLoader, getScriptInputStream, getScriptReader
 
Methods inherited from class org.picocontainer.script.AbstractContainerBuilder
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(Reader script,
                                 ClassLoader classLoader)

BeanShellContainerBuilder

public BeanShellContainerBuilder(URL script,
                                 ClassLoader classLoader)

BeanShellContainerBuilder

public BeanShellContainerBuilder(Reader script,
                                 ClassLoader classLoader,
                                 LifecycleMode lifecycleMode)

BeanShellContainerBuilder

public BeanShellContainerBuilder(URL script,
                                 ClassLoader classLoader,
                                 LifecycleMode lifecycleMode)
Method Detail

createContainerFromScript

protected org.picocontainer.PicoContainer createContainerFromScript(org.picocontainer.PicoContainer parentContainer,
                                                                    Object assemblyScope)
Specified by:
createContainerFromScript in class ScriptedContainerBuilder


Copyright © 2003-2010 Codehaus. All Rights Reserved.