# invoke

operator fun String. invoke(configuration: T.() -> Unit): NamedDomainObjectProvider<T>

Configures an object by name, without triggering its creation or configuration, failing if there is no such object.

#### See also

NamedDomainObjectContainer.named
NamedDomainObjectProvider.configure

operator fun <U : T> String. invoke(type: KClass<U>, configuration: U.() -> Unit): NamedDomainObjectProvider<U>

Configures an object by name, without triggering its creation or configuration, failing if there is no such object.

#### See also

PolymorphicDomainObjectContainer.named
NamedDomainObjectProvider.configure

operator fun <U : T> String. invoke(type: KClass<U>): NamedDomainObjectProvider<U>

Locates an object by name and type, without triggering its creation or configuration, failing if there is no such object.

#### See also

PolymorphicDomainObjectContainer.named