Package groovy.util
Interface ObjectGraphBuilder.NewInstanceResolver
- 
- All Known Implementing Classes:
- ObjectGraphBuilder.DefaultNewInstanceResolver
 - Enclosing class:
- ObjectGraphBuilder
 
 public static interface ObjectGraphBuilder.NewInstanceResolverStrategy for creating new instances of a class.
 Useful for plug-in calls to non-default constructors.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectnewInstance(java.lang.Class klass, java.util.Map attributes)Create a new instance of Class klass.
 
- 
- 
- 
Method Detail- 
newInstancejava.lang.Object newInstance(java.lang.Class klass, java.util.Map attributes) throws java.lang.InstantiationException, java.lang.IllegalAccessExceptionCreate a new instance of Class klass.- Parameters:
- klass- the resolved class name
- attributes- the attribute Map available for the node
- Throws:
- java.lang.InstantiationException
- java.lang.IllegalAccessException
 
 
- 
 
-