groovy.util
Class ObjectGraphBuilder.ObjectFactory

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

private static class ObjectGraphBuilder.ObjectFactory
extends AbstractFactory


Constructor Summary
private ObjectGraphBuilder.ObjectFactory()
           
 
Method Summary
private  java.lang.Class loadClass(java.lang.ClassLoader classLoader, java.lang.String classname)
           
 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
isLeaf, onHandleNodeAttributes, onNodeCompleted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectGraphBuilder.ObjectFactory

private ObjectGraphBuilder.ObjectFactory()
Method Detail

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
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

setChild

public void setChild(FactoryBuilderSupport builder,
                     java.lang.Object parent,
                     java.lang.Object child)
Specified by:
setChild in interface Factory
Overrides:
setChild in class AbstractFactory

setParent

public void setParent(FactoryBuilderSupport builder,
                      java.lang.Object parent,
                      java.lang.Object child)
Specified by:
setParent in interface Factory
Overrides:
setParent in class AbstractFactory

loadClass

private java.lang.Class loadClass(java.lang.ClassLoader classLoader,
                                  java.lang.String classname)


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