|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.util.BuilderSupport
org.nanocontainer.script.groovy.OldGroovyNodeBuilder
public class OldGroovyNodeBuilder
Builds node trees of PicoContainers and Pico components using GroovyMarkup.
Simple example usage in your groovy script:
builder = new org.nanocontainer.script.groovy.OldGroovyNodeBuilder()
pico = builder.container(parent:parent) {
component(class:org.nanocontainer.testmodel.DefaultWebServerConfig)
component(class:org.nanocontainer.testmodel.WebServerImpl)
}
Constructor Summary | |
---|---|
OldGroovyNodeBuilder()
Deprecated. |
|
OldGroovyNodeBuilder(org.nanocontainer.script.NodeBuilderDecorationDelegate decorationDelegate)
Deprecated. |
Method Summary | |
---|---|
protected java.lang.Object |
createBean(java.util.Map attributes)
Deprecated. |
protected org.nanocontainer.NanoContainer |
createChildContainer(java.util.Map attributes,
org.nanocontainer.NanoContainer parent)
Deprecated. Creates a new container. |
protected org.nanocontainer.NanoContainer |
createComponentClassLoader(org.nanocontainer.NanoContainer parent)
Deprecated. |
protected java.lang.Object |
createNode(java.lang.Object name)
Deprecated. |
protected java.lang.Object |
createNode(java.lang.Object name,
java.util.Map attributes)
Deprecated. |
protected java.lang.Object |
createNode(java.lang.Object name,
java.util.Map attributes,
java.lang.Object value)
Deprecated. Override of create node. |
protected java.lang.Object |
createNode(java.lang.Object name,
java.lang.Object value)
Deprecated. |
protected java.lang.Object |
doInvokeMethod(java.lang.String s,
java.lang.Object name,
java.lang.Object args)
Deprecated. |
protected void |
setClosureDelegate(groovy.lang.Closure closure,
java.lang.Object o)
Deprecated. |
protected void |
setParent(java.lang.Object parent,
java.lang.Object child)
Deprecated. |
Methods inherited from class groovy.util.BuilderSupport |
---|
getCurrent, getName, invokeMethod, invokeMethod, nodeCompleted, postNodeCompletion, setCurrent |
Methods inherited from class groovy.lang.GroovyObjectSupport |
---|
getMetaClass, getProperty, setMetaClass, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OldGroovyNodeBuilder(org.nanocontainer.script.NodeBuilderDecorationDelegate decorationDelegate)
public OldGroovyNodeBuilder()
Method Detail |
---|
protected void setParent(java.lang.Object parent, java.lang.Object child)
setParent
in class groovy.util.BuilderSupport
protected java.lang.Object doInvokeMethod(java.lang.String s, java.lang.Object name, java.lang.Object args)
doInvokeMethod
in class groovy.util.BuilderSupport
protected void setClosureDelegate(groovy.lang.Closure closure, java.lang.Object o)
setClosureDelegate
in class groovy.util.BuilderSupport
protected java.lang.Object createNode(java.lang.Object name)
createNode
in class groovy.util.BuilderSupport
protected java.lang.Object createNode(java.lang.Object name, java.lang.Object value)
createNode
in class groovy.util.BuilderSupport
protected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes, java.lang.Object value)
createNode
in class groovy.util.BuilderSupport
name
- The name of the groovy node we're building. Examples are
'container', and 'grant',attributes
- Map attributes of the current invocation.
protected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes)
createNode
in class groovy.util.BuilderSupport
protected org.nanocontainer.NanoContainer createChildContainer(java.util.Map attributes, org.nanocontainer.NanoContainer parent)
attributes
- Map Attributes defined by the builder in the script.parent
- The parent container
protected org.nanocontainer.NanoContainer createComponentClassLoader(org.nanocontainer.NanoContainer parent)
protected java.lang.Object createBean(java.util.Map attributes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |