public interface ObjectGraphBuilder.NewInstanceResolver
Strategy for creating new instances of a class.
Useful for plug-in calls to non-default constructors.
| Type Params | Return Type | Name and description |
|---|---|---|
public Object |
newInstance(Class klass, Map attributes)Create a new instance of Class klass. |
Create a new instance of Class klass.
klass - the resolved class nameattributes - the attribute Map available for the node
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/util/ObjectGraphBuilder.NewInstanceResolver.html