Named Domain Object Container Scope
Receiver for NamedDomainObjectContainer configuration blocks.
Inheritors
Properties
Provides a property delegate that creates elements of the default collection type.
Functions
Creates a regular container that wraps the polymorphic container presenting all elements of a specified type.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.PolymorphicDomainObjectContainer.containerWithType.
Creates a domain object with the specified name and type, and adds it to the container.
Creates a domain object with the specified name and type, adds it to the container, and configures it with the specified action.
Creates a domain object with the specified name and type, and adds it to the container.
Creates a domain object with the specified name and type, adds it to the container, and configures it with the specified action.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.PolymorphicDomainObjectContainer.create.
Provides a property delegate that creates elements of the default collection type with the given configuration.
Provides a property delegate that creates elements of the given type.
Provides a property delegate that creates elements of the given type expressed as a java.lang.Class with the given configuration.
Provides a property delegate that creates elements of the given type with the given configuration.
Disallows further structural modifications to this collection.
Locates an object by name and casts it to the expected type T.
Locates an object by name and casts it to the expected type T then configures it.
Locates an object by name and casts it to the expected type.
Locates an object by name and casts it to the expected type then configures it.
Provides a property delegate that gets elements of the given type.
Provides a property delegate that gets elements of the given type and applies the given configuration.
Configures an object by name, without triggering its creation or configuration, failing if there is no such object.
Locates an object by name and type, without triggering its creation or configuration, failing if there is no such object.
Looks for an item with the given name and type, creating and adding it to this container if it does not exist.
Creates a domain object with the specified name and type if it does not exists, and adds it to the container.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.PolymorphicDomainObjectContainer.maybeCreate.
Locates an object by name and type, without triggering its creation or configuration, failing if there is no such object.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.NamedDomainObjectCollection.named.
Configures an object by name and type, without triggering its creation or configuration, failing if there is no such object.
Allows a NamedDomainObjectCollection to be used as a property delegate.
Defines a new object, which will be created when it is required. A object is 'required' when the object is located using query methods such as getByName or when get is called on the return value of this method.
Defines a new object, which will be created when it is required.
Defines and configure a new object, which will be created when it is required.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.PolymorphicDomainObjectContainer.register.
Returns a collection containing the objects in this collection of the given type. The returned collection is live, so that when matching objects are later added to this collection, they are also visible in the filtered collection.
Returns a collection containing the objects in this collection of the given type. Equivalent to calling withType(type).all(configureAction).
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.DomainObjectCollection.withType.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.DomainObjectSet.withType.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.NamedDomainObjectCollection.withType.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.NamedDomainObjectSet.withType.