T - The action type.Action<T>@Deprecated public class ClosureBackedAction<T> extends Object implements Action<T>
To apply a configuration (represented by a Groovy closure) on an object, use Project.configure(Object, Closure).
| Constructor | Description |
|---|---|
ClosureBackedAction(Closure closure) |
Deprecated.
|
ClosureBackedAction(Closure closure,
int resolveStrategy) |
Deprecated.
|
ClosureBackedAction(Closure closure,
int resolveStrategy,
boolean configurableAware) |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object o) |
Deprecated.
|
void |
execute(T delegate) |
Deprecated.
Performs this action against the given object.
|
static <T> void |
execute(T delegate,
Closure<?> closure) |
Deprecated.
|
Closure |
getClosure() |
Deprecated.
|
int |
hashCode() |
Deprecated.
|
static <T> ClosureBackedAction<T> |
of(Closure<?> closure) |
Deprecated.
|
public ClosureBackedAction(Closure closure)
public ClosureBackedAction(Closure closure, int resolveStrategy)
public ClosureBackedAction(Closure closure, int resolveStrategy, boolean configurableAware)
public static <T> ClosureBackedAction<T> of(Closure<?> closure)
public static <T> void execute(T delegate,
Closure<?> closure)
public void execute(T delegate)
Actionpublic Closure getClosure()