gradle
8.5

# ClosureBackedAction

open class ClosureBackedAction<T> : Action<T> (source)

### Deprecated

This class is only here to maintain binary compatibility with existing plugins.

To apply a configuration (represented by a Groovy closure) on an object, use configure.

#### Deprecated

Will be removed in Gradle 9.0.

#### Parameters

<T>

The action type.

## Constructors

ClosureBackedAction
Link copied to clipboard
constructor(closure: Closure)
constructor(closure: Closure, resolveStrategy: Int)
constructor(closure: Closure, resolveStrategy: Int, configurableAware: Boolean)

## Properties

closure
Link copied to clipboard
val closure: Closure

## Functions

equals
Link copied to clipboard
open fun equals(o: Any): Boolean
execute
Link copied to clipboard
open fun execute(delegate: T)
open fun <T> execute(delegate: T, closure: Closure<out Any>)
hashCode
Link copied to clipboard
open fun hashCode(): Int
invoke
Link copied to clipboard
operator fun <T> Action<in T>.invoke(target: T)

Enables function invocation syntax on Action references.

of
Link copied to clipboard
open fun <T> of(closure: Closure<out Any>): ClosureBackedAction<T>