Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## groovy.util
Class ObjectGraphBuilder.DefaultNewInstanceResolver

    java.lang.Object
      groovy.util.ObjectGraphBuilder.DefaultNewInstanceResolver

All Implemented Interfaces:
  ObjectGraphBuilder.NewInstanceResolver

Enclosing class:
  ObjectGraphBuilder

    public static class ObjectGraphBuilder.DefaultNewInstanceResolver

extends Object
implements ObjectGraphBuilder.NewInstanceResolver

Default impl that calls Class.newInstance()

Constructor Summary
`ObjectGraphBuilder.DefaultNewInstanceResolver()`

Method Summary
`Object` | `newInstance(Class klass, Map attributes)` Create a new instance of Class klass.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ObjectGraphBuilder.DefaultNewInstanceResolver

    public ObjectGraphBuilder.DefaultNewInstanceResolver()

Method Detail

### newInstance

    public Object newInstance(Class klass,
                              Map attributes)
                       throws InstantiationException,
                              IllegalAccessException

  Description copied from interface: `ObjectGraphBuilder.NewInstanceResolver`
  Create a new instance of Class klass.

  Specified by:
    `newInstance` in interface `ObjectGraphBuilder.NewInstanceResolver`
  Parameters:
    `klass` - the resolved class name
    `attributes` - the attribute Map available for the node
  Throws:
    `InstantiationException`
    `IllegalAccessException`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2003-2008 The Codehaus. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD