org.nanocontainer.script.groovy.buildernodes
Class ChildContainerNode

java.lang.Object
  extended by org.nanocontainer.script.groovy.buildernodes.AbstractBuilderNode
      extended by org.nanocontainer.script.groovy.buildernodes.ChildContainerNode
All Implemented Interfaces:
Serializable, BuilderNode

public class ChildContainerNode
extends AbstractBuilderNode

Creates a new NanoContainer node. There may or may not be a parent container involved.

Version:
$Revision: 2695 $
Author:
James Strachan, Paul Hammant, Aslak Hellesøy, Michael Rimov, Mauro Talevi
See Also:
Serialized Form

Field Summary
static String NODE_NAME
          Node name.
 
Constructor Summary
ChildContainerNode(org.nanocontainer.script.NodeBuilderDecorationDelegate delegate)
          Constructs a child container node.
 
Method Summary
protected  org.nanocontainer.NanoContainer createChildContainer(Map attributes, org.nanocontainer.NanoContainer parent)
          Creates a new container.
 Object createNewNode(Object current, Map attributes)
          Creates a new container.
 
Methods inherited from class org.nanocontainer.script.groovy.buildernodes.AbstractBuilderNode
addAttribute, getNodeName, getSupportedAttributes, isAttribute, toString, validateScriptedAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODE_NAME

public static final String NODE_NAME
Node name.

See Also:
Constant Field Values
Constructor Detail

ChildContainerNode

public ChildContainerNode(org.nanocontainer.script.NodeBuilderDecorationDelegate delegate)
Constructs a child container node. It requires a NodeBuilderDecorationDelegate for construction.

Parameters:
delegate - NodeBuilderDecorationDelegate
Method Detail

createNewNode

public Object createNewNode(Object current,
                            Map attributes)
                     throws org.nanocontainer.script.NanoContainerMarkupException
Creates a new container. There may or may not be a parent to this container. Supported attributes are

Execute the handler for the given node builder.

Parameters:
current - NanoContainer
attributes - Map
Returns:
Object
Throws:
org.nanocontainer.script.NanoContainerMarkupException

createChildContainer

protected org.nanocontainer.NanoContainer createChildContainer(Map attributes,
                                                               org.nanocontainer.NanoContainer parent)
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


Copyright © 2003-2009 Codehaus. All Rights Reserved.