Package 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
Constructors Constructor Description DefaultNewInstanceResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
newInstance(Class klass, Map attributes)
Create a new instance of Class klass.
-
-
-
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 interfaceObjectGraphBuilder.NewInstanceResolver
- Parameters:
klass
- the resolved class nameattributes
- the attribute Map available for the node- Throws:
InstantiationException
IllegalAccessException
-
-