org.picocontainer.script.groovy.nodes
Class NewBuilderNode
java.lang.Object
org.picocontainer.script.groovy.nodes.AbstractBuilderNode
org.picocontainer.script.groovy.nodes.NewBuilderNode
- All Implemented Interfaces:
- Serializable, BuilderNode
public class NewBuilderNode
- extends AbstractBuilderNode
Handles the child of container 'newBuilder' node.
- Author:
- James Strachan, Paul Hammant, Aslak Hellesøy, Michael Rimov, Mauro Talevi
- See Also:
- Serialized Form
NODE_NAME
public static final String NODE_NAME
- Node name we're handling: 'newBuilder'.
- See Also:
- Constant Field Values
CLASS_ATTRIBUTE
public static final String CLASS_ATTRIBUTE
- Supported attribute: 'class'.
- See Also:
- Constant Field Values
VALIDATE_ATTRIBUTE
public static final String VALIDATE_ATTRIBUTE
- Supported attribute 'validating'. Indicates that attributes should be
validated and ScriptedPicoContainerMarkupException should be thrown if
invalid attributes are found.
- See Also:
- Constant Field Values
NewBuilderNode
public NewBuilderNode()
createNewNode
public Object createNewNode(Object current,
Map<String,Object> attributes)
- Description copied from interface:
BuilderNode
- Creates a new node .
- Parameters:
current
- the current Object - may be null
for no
parent container.attributes
- the Map of scripted attributes for the builder node -
may be null
- Returns:
- The newly created node
Copyright © 2003-2010 Codehaus. All Rights Reserved.