public static class ObjectFactory.Dispatcher.ForApi4CapableGradle extends Object implements ObjectFactory.Dispatcher
ObjectFactory.Dispatcher.ForApi4CapableGradle, ObjectFactory.Dispatcher.ForLegacyGradle| Modifier | Constructor and Description |
|---|---|
protected |
ForApi4CapableGradle(Method getObjects,
Method newInstance)
Creates a new dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
newInstance(Project project,
Class<?> type,
Object... argument)
Returns a new instance of the supplied class by invoking a constructor or returns
null if the feature
is not available. |
public Object newInstance(Project project, Class<?> type, Object... argument)
null if the feature
is not available.newInstance in interface ObjectFactory.Dispatcherproject - The Gradle project to use.type - The type of the class to be instantiated.argument - The arguments to supply.null if the feature is not available.