groovy.util
Class ObjectGraphBuilder.ObjectRefFactory
java.lang.Object
groovy.util.AbstractFactory
groovy.util.ObjectGraphBuilder.ObjectFactory
groovy.util.ObjectGraphBuilder.ObjectRefFactory
- All Implemented Interfaces:
- Factory
- Enclosing class:
- ObjectGraphBuilder
private static class ObjectGraphBuilder.ObjectRefFactory
- extends ObjectGraphBuilder.ObjectFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectGraphBuilder.ObjectRefFactory
private ObjectGraphBuilder.ObjectRefFactory()
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface Factory
- Overrides:
isLeaf
in class AbstractFactory
- Returns:
- true if no child closures should be processed
newInstance
public java.lang.Object newInstance(FactoryBuilderSupport builder,
java.lang.Object name,
java.lang.Object value,
java.util.Map properties)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
- Specified by:
newInstance
in interface Factory
- Overrides:
newInstance
in class ObjectGraphBuilder.ObjectFactory
- Parameters:
builder
- the FactoryBuildername
- the name of the node being builtvalue
- the 'value' argument in the build nodeproperties
- the attributes of the build arg
- Returns:
- the object created for the builder
- Throws:
java.lang.InstantiationException
- if attempting to instantiate an interface or abstract class
java.lang.IllegalAccessException
- if the instance can't be created due to a security violation
setChild
public void setChild(FactoryBuilderSupport builder,
java.lang.Object parent,
java.lang.Object child)
- Specified by:
setChild
in interface Factory
- Overrides:
setChild
in class ObjectGraphBuilder.ObjectFactory
setParent
public void setParent(FactoryBuilderSupport builder,
java.lang.Object parent,
java.lang.Object child)
- Specified by:
setParent
in interface Factory
- Overrides:
setParent
in class ObjectGraphBuilder.ObjectFactory
Copyright © ${year} The Codehaus. All Rights Reserved.