public static enum ObjectFactory.Dispatcher.ForLegacyGradle extends Enum<ObjectFactory.Dispatcher.ForLegacyGradle> implements ObjectFactory.Dispatcher
ObjectFactory.Dispatcher.ForApi4CapableGradle, ObjectFactory.Dispatcher.ForLegacyGradle| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| 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. |
static ObjectFactory.Dispatcher.ForLegacyGradle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ObjectFactory.Dispatcher.ForLegacyGradle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ObjectFactory.Dispatcher.ForLegacyGradle INSTANCE
public static ObjectFactory.Dispatcher.ForLegacyGradle[] values()
for (ObjectFactory.Dispatcher.ForLegacyGradle c : ObjectFactory.Dispatcher.ForLegacyGradle.values()) System.out.println(c);
public static ObjectFactory.Dispatcher.ForLegacyGradle valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@AlwaysNull 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.