groovy.util
Class ObjectGraphBuilder.ObjectRefFactory

java.lang.Object
  extended by groovy.util.AbstractFactory
      extended by groovy.util.ObjectGraphBuilder.ObjectFactory
          extended by groovy.util.ObjectGraphBuilder.ObjectRefFactory
All Implemented Interfaces:
Factory
Enclosing class:
ObjectGraphBuilder

private static class ObjectGraphBuilder.ObjectRefFactory
extends ObjectGraphBuilder.ObjectFactory


Constructor Summary
private ObjectGraphBuilder.ObjectRefFactory()
           
 
Method Summary
 boolean isLeaf()
           
 java.lang.Object newInstance(FactoryBuilderSupport builder, java.lang.Object name, java.lang.Object value, java.util.Map properties)
           
 
Methods inherited from class groovy.util.ObjectGraphBuilder.ObjectFactory
setChild, setParent
 
Methods inherited from class groovy.util.AbstractFactory
onHandleNodeAttributes, onNodeCompleted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectGraphBuilder.ObjectRefFactory

private ObjectGraphBuilder.ObjectRefFactory()
Method Detail

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 FactoryBuilder
name - the name of the node being built
value - the 'value' argument in the build node
properties - the attributes of the build arg
Returns:
the object created for the builder
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException


Copyright © ${year} The Codehaus. All Rights Reserved.