org.picocontainer.script.groovy.nodes
Class ComponentNode

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

public class ComponentNode
extends AbstractBuilderNode

Creates a component node

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(NodeBuilderDecorator decorator)
           
 
Method Summary
 Object createNewNode(Object current, Map<String,Object> attributes)
          Execute the handler for the given node builder.
 
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
See Also:
Constant Field Values

KEY

public static final String KEY
Attributes 'key'

See Also:
Constant Field Values
Constructor Detail

ComponentNode

public ComponentNode(NodeBuilderDecorator decorator)
Method Detail

createNewNode

public Object createNewNode(Object current,
                            Map<String,Object> attributes)
Execute the handler for the given node builder.

Parameters:
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.