org.picocontainer.script.groovy.nodes
Class ChildContainerNode

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

public class ChildContainerNode
extends AbstractBuilderNode

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

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(NodeBuilderDecorator decorator)
          Constructs a child container node with a given decorator
 
Method Summary
protected  org.picocontainer.classname.ClassLoadingPicoContainer createChildContainer(Map<String,Object> attributes, org.picocontainer.classname.ClassLoadingPicoContainer parent)
          Creates a new container.
 Object createNewNode(Object current, Map attributes)
          Creates a new container.
 
Methods inherited from class org.picocontainer.script.groovy.nodes.AbstractBuilderNode
addAttribute, getNodeName, getSupportedAttributeNames, 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(NodeBuilderDecorator decorator)
Constructs a child container node with a given decorator

Parameters:
decorator - NodeBuilderDecorator
Method Detail

createNewNode

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

Creates a new node .

Parameters:
current - PicoContainer
attributes - Map
Returns:
Object
Throws:
ScriptedPicoContainerMarkupException

createChildContainer

protected org.picocontainer.classname.ClassLoadingPicoContainer createChildContainer(Map<String,Object> attributes,
                                                                                     org.picocontainer.classname.ClassLoadingPicoContainer 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 PicoContainer


Copyright © 2003-2010 Codehaus. All Rights Reserved.