org.nanocontainer.script.groovy.buildernodes
Class ComponentNode

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

public class ComponentNode
extends AbstractBuilderNode

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

Field Summary
static String KEY
          Attributes 'key'
static String NODE_NAME
           
 
Constructor Summary
ComponentNode(org.nanocontainer.script.NodeBuilderDecorationDelegate builderDelegate)
           
 
Method Summary
 Object createNewNode(Object current, Map attributes)
          Execute the handler for the given node builder.
 
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
See Also:
Constant Field Values

KEY

public static final String KEY
Attributes 'key'

See Also:
Constant Field Values
Constructor Detail

ComponentNode

public ComponentNode(org.nanocontainer.script.NodeBuilderDecorationDelegate builderDelegate)
Method Detail

createNewNode

public Object createNewNode(Object current,
                            Map attributes)
Execute the handler for the given node builder. TODO - wrong Javadoc

Parameters:
name - Object the parent object.
value - The Node value. This is almost never used, but it kept in for consistency with the Groovy Builder API. Normally set to null.
current - The current node.
attributes - Map attributes specified in the groovy script for the builder node.
Returns:
Object


Copyright © 2003-2009 Codehaus. All Rights Reserved.