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)
           
 void setChild(FactoryBuilderSupport builder, java.lang.Object parent, java.lang.Object child)
           
 void setParent(FactoryBuilderSupport builder, java.lang.Object parent, java.lang.Object child)
           
 
Methods inherited from class groovy.util.AbstractFactory
isHandlesNodeChildren, onFactoryRegistration, onHandleNodeAttributes, onNodeChildren, 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 - 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.