Class ChildFactory

  • All Implemented Interfaces:
    groovy.util.Factory

    public class ChildFactory
    extends NamedFactory
    Builds child nodes.
    Since:
    0.7
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class type  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChildFactory​(java.lang.String name, java.lang.Class type)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object newInstance​(groovy.util.FactoryBuilderSupport builder, java.lang.Object name, java.lang.Object value, java.util.Map attrs)  
      • Methods inherited from class groovy.util.AbstractFactory

        isHandlesNodeChildren, isLeaf, onFactoryRegistration, onHandleNodeAttributes, onNodeChildren, onNodeCompleted, setChild
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • type

        private final java.lang.Class type
    • Constructor Detail

      • ChildFactory

        public ChildFactory​(java.lang.String name,
                            java.lang.Class type)
    • Method Detail

      • newInstance

        public java.lang.Object newInstance​(groovy.util.FactoryBuilderSupport builder,
                                            java.lang.Object name,
                                            java.lang.Object value,
                                            java.util.Map attrs)
                                     throws java.lang.InstantiationException,
                                            java.lang.IllegalAccessException
        Throws:
        java.lang.InstantiationException
        java.lang.IllegalAccessException