org.nanocontainer.script.groovy
Class OldGroovyNodeBuilder

java.lang.Object
  extended bygroovy.lang.GroovyObjectSupport
      extended bygroovy.util.BuilderSupport
          extended byorg.nanocontainer.script.groovy.OldGroovyNodeBuilder
All Implemented Interfaces:
groovy.lang.GroovyObject

Deprecated. Since version 1.0-RC-3, use GroovyNodeBuilder instead.

public class OldGroovyNodeBuilder
extends groovy.util.BuilderSupport

Builds node trees of PicoContainers and Pico components using GroovyMarkup.

Simple example usage in your groovy script:

 builder = new org.nanocontainer.script.groovy.OldGroovyNodeBuilder()
 pico = builder.container(parent:parent) {
   component(class:org.nanocontainer.testmodel.DefaultWebServerConfig)
   component(class:org.nanocontainer.testmodel.WebServerImpl)
 }
 

Version:
$Revision: 3144 $
Author:
James Strachan, Paul Hammant, Aslak Hellesøy, Michael Rimov, Mauro Talevi

Constructor Summary
OldGroovyNodeBuilder()
          Deprecated.  
OldGroovyNodeBuilder(org.nanocontainer.script.NodeBuilderDecorationDelegate decorationDelegate)
          Deprecated.  
 
Method Summary
protected  java.lang.Object createBean(java.util.Map attributes)
          Deprecated.  
protected  org.nanocontainer.NanoContainer createChildContainer(java.util.Map attributes, org.nanocontainer.NanoContainer parent)
          Deprecated. Creates a new container.
protected  org.nanocontainer.NanoContainer createComponentClassLoader(org.nanocontainer.NanoContainer parent)
          Deprecated.  
protected  java.lang.Object createNode(java.lang.Object name)
          Deprecated.  
protected  java.lang.Object createNode(java.lang.Object name, java.util.Map attributes)
          Deprecated.  
protected  java.lang.Object createNode(java.lang.Object name, java.util.Map attributes, java.lang.Object value)
          Deprecated. Override of create node.
protected  java.lang.Object createNode(java.lang.Object name, java.lang.Object value)
          Deprecated.  
protected  java.lang.Object doInvokeMethod(java.lang.String s, java.lang.Object name, java.lang.Object args)
          Deprecated.  
protected  void setClosureDelegate(groovy.lang.Closure closure, java.lang.Object o)
          Deprecated.  
protected  void setParent(java.lang.Object parent, java.lang.Object child)
          Deprecated.  
 
Methods inherited from class groovy.util.BuilderSupport
getCurrent, getName, invokeMethod, invokeMethod, nodeCompleted, setCurrent
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, getProperty, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OldGroovyNodeBuilder

public OldGroovyNodeBuilder(org.nanocontainer.script.NodeBuilderDecorationDelegate decorationDelegate)
Deprecated. 

OldGroovyNodeBuilder

public OldGroovyNodeBuilder()
Deprecated. 
Method Detail

setParent

protected void setParent(java.lang.Object parent,
                         java.lang.Object child)
Deprecated. 

doInvokeMethod

protected java.lang.Object doInvokeMethod(java.lang.String s,
                                          java.lang.Object name,
                                          java.lang.Object args)
Deprecated. 

setClosureDelegate

protected void setClosureDelegate(groovy.lang.Closure closure,
                                  java.lang.Object o)
Deprecated. 

createNode

protected java.lang.Object createNode(java.lang.Object name)
Deprecated. 

createNode

protected java.lang.Object createNode(java.lang.Object name,
                                      java.lang.Object value)
Deprecated. 

createNode

protected java.lang.Object createNode(java.lang.Object name,
                                      java.util.Map attributes,
                                      java.lang.Object value)
Deprecated. 
Override of create node. Called by BuilderSupport. It examines the current state of the builder and the given parameters and dispatches the code to one of the create private functions in this object.

Parameters:
name - The name of the groovy node we're building. Examples are 'container', and 'grant',
attributes - Map attributes of the current invocation.
Returns:
Object the created object.

createNode

protected java.lang.Object createNode(java.lang.Object name,
                                      java.util.Map attributes)
Deprecated. 

createChildContainer

protected org.nanocontainer.NanoContainer createChildContainer(java.util.Map attributes,
                                                               org.nanocontainer.NanoContainer parent)
Deprecated. 
Creates a new container. There may or may not be a parent to this container. Supported attributes are:

Parameters:
attributes - Map Attributes defined by the builder in the script.
parent - The parent container
Returns:
The NanoContainer

createComponentClassLoader

protected org.nanocontainer.NanoContainer createComponentClassLoader(org.nanocontainer.NanoContainer parent)
Deprecated. 

createBean

protected java.lang.Object createBean(java.util.Map attributes)
Deprecated. 


Copyright © 2003-2007 Codehaus. All Rights Reserved.