# ExistingDomainObjectDelegateProvider

class ExistingDomainObjectDelegateProvider<T>(source)

### Deprecated

Use 'val element = named(name)' instead. See the Gradle 9.6 upgrading guide.

Holds the delegate provider for the `existing` property delegate with the purpose of providing specialized implementations for the `provideDelegate` operator based on the static type of the provider.

#### Since

4.10

## Types

Companion
Link copied to clipboard
object Companion

## Functions

provideDelegate
Link copied to clipboard
operator fun <T : Any, C : NamedDomainObjectCollection<T>> ExistingDomainObjectDelegateProvider<C>.provideDelegate(receiver: Any?, property: KProperty<*>): ExistingDomainObjectDelegate<NamedDomainObjectProvider<T?>?>

Provides access to the NamedDomainObjectProvider for the element of the given property name from the container via a delegated property.

operator fun ExistingDomainObjectDelegateProvider<out TaskContainer>.provideDelegate(receiver: Any?, property: KProperty<*>): ExistingDomainObjectDelegate<TaskProvider<Task?>?>

Provides a TaskProvider delegate for the task named after the property.