@Deprecated public class ConfigureUtil extends Object
To apply a configuration (represented by a Groovy closure) on an object, use Project.configure(Object, Closure).
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ConfigureUtil.IncompleteInputException |
Deprecated.
|
static class |
ConfigureUtil.WrappedConfigureAction<T> |
Deprecated.
|
| Constructor | Description |
|---|---|
ConfigureUtil() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T> T |
configure(Closure configureClosure,
T target) |
Deprecated.
|
static <T> T |
configureByMap(Map<?,?> properties,
T delegate) |
Deprecated.
|
static <T> T |
configureByMap(Map<?,?> properties,
T delegate,
Collection<?> mandatoryKeys) |
Deprecated.
|
static <T> T |
configureSelf(Closure configureClosure,
T target) |
Deprecated.
Called from an object's
Configurable.configure(groovy.lang.Closure) method. |
static <T> T |
configureSelf(Closure configureClosure,
T target,
org.gradle.internal.metaobject.ConfigureDelegate closureDelegate) |
Deprecated.
Called from an object's
Configurable.configure(groovy.lang.Closure) method. |
static <T> Action<T> |
configureUsing(Closure configureClosure) |
Deprecated.
Creates an action that uses the given closure to configure objects of type T.
|
public static <T> T configureByMap(Map<?,?> properties, T delegate)
public static <T> T configureByMap(Map<?,?> properties, T delegate, Collection<?> mandatoryKeys)
public static <T> T configure(@Nullable Closure configureClosure, T target)
Configures target with configureClosure, via the Configurable interface if necessary.
If target does not implement Configurable interface, it is set as the delegate of a clone of
configureClosure with a resolve strategy of DELEGATE_FIRST.
If target does implement the Configurable interface, the configureClosure will be passed to
delegate's Configurable.configure(Closure) method.
configureClosure - The configuration closuretarget - The object to be configuredpublic static <T> Action<T> configureUsing(@Nullable Closure configureClosure)
public static <T> T configureSelf(@Nullable Closure configureClosure, T target)
Configurable.configure(groovy.lang.Closure) method.public static <T> T configureSelf(@Nullable Closure configureClosure, T target, org.gradle.internal.metaobject.ConfigureDelegate closureDelegate)
Configurable.configure(groovy.lang.Closure) method.