Extensible Polymorphic Domain Object Container
A org.gradle.api.PolymorphicDomainObjectContainer that can be extended at runtime to create elements of new types.
You can create an instance of this type using the factory method polymorphicDomainObjectContainer.
Parameters
the (base) container element type
Inheritors
Properties
Provides a property delegate that creates elements of the default collection type.
Functions
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.
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.
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.
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.
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.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.ExtensiblePolymorphicDomainObjectContainer.registerBinding.
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.