public static class ObjectFactory.Dispatcher.ForApi4CapableGradle extends java.lang.Object implements ObjectFactory.Dispatcher
ObjectFactory.Dispatcher.ForApi4CapableGradle, ObjectFactory.Dispatcher.ForLegacyGradle| Modifier | Constructor and Description |
|---|---|
protected |
ForApi4CapableGradle(java.lang.reflect.Method getObjects,
java.lang.reflect.Method newInstance)
Creates a new dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
newInstance(org.gradle.api.Project project,
java.lang.Class<?> type,
java.lang.Object... argument)
Returns a new instance of the supplied class by invoking a constructor or returns
null if the feature
is not available. |
protected ForApi4CapableGradle(java.lang.reflect.Method getObjects,
java.lang.reflect.Method newInstance)
getObjects - The org.gradle.api.Project#getObjects() method.newInstance - The org.gradle.api.model.ObjectFactory#newInstance method.public java.lang.Object newInstance(org.gradle.api.Project project,
java.lang.Class<?> type,
java.lang.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.