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:
java.io.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 java.lang.String KEY
          Attributes 'key'
static java.lang.String NODE_NAME
           
 
Constructor Summary
ComponentNode(org.nanocontainer.script.NodeBuilderDecorationDelegate builderDelegate)
           
 
Method Summary
 java.lang.Object createNewNode(java.lang.Object current, java.util.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 java.lang.String NODE_NAME
See Also:
Constant Field Values

KEY

public static final java.lang.String KEY
Attributes 'key'

See Also:
Constant Field Values
Constructor Detail

ComponentNode

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

createNewNode

public java.lang.Object createNewNode(java.lang.Object current,
                                      java.util.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-2010 Codehaus. All Rights Reserved.