# ExistingDomainObjectDelegateProviderWithTypeAndAction

class ExistingDomainObjectDelegateProviderWithTypeAndAction<T, U : Any>(source)

### Deprecated

Use 'val element = named<Type>(name) { }' instead. See the Gradle 9.6 upgrading guide.

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

## Types

Companion
Link copied to clipboard
object Companion

## Functions

provideDelegate
Link copied to clipboard
operator fun <U : ERROR CLASS: Symbol not found for Task> ExistingDomainObjectDelegateProviderWithTypeAndAction<out ERROR CLASS: Symbol not found for TaskContainer, U>.provideDelegate(receiver: Any?, property: KProperty<*>): ERROR CLASS: Cannot infer argument for type parameter K

Provides a TaskProvider delegate for the task of the given type named after the property after configuring it with the given action.

operator fun <T : Any, C : ERROR CLASS: Symbol not found for NamedDomainObjectCollection<T>, U : T> ExistingDomainObjectDelegateProviderWithTypeAndAction<C, U>.provideDelegate(receiver: Any?, property: KProperty<*>): ERROR CLASS: Cannot infer argument for type parameter K

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