Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NamedDomainObjectList (0.27 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/collections/DomainObjectCollectionFactory.java

    import org.gradle.api.DomainObjectSet;
    import org.gradle.api.ExtensiblePolymorphicDomainObjectContainer;
    import org.gradle.api.NamedDomainObjectContainer;
    import org.gradle.api.NamedDomainObjectFactory;
    import org.gradle.api.NamedDomainObjectList;
    import org.gradle.api.NamedDomainObjectSet;
    import org.gradle.api.internal.CompositeDomainObjectSet;
    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/collections.adoc

    ====
    
    [[nameddomainobjectlist]]
    == 3. `NamedDomainObjectList`
    
    A link:{javadocPath}/org/gradle/api/NamedDomainObjectList.html[`NamedDomainObjectList`] holds a list of configurable objects, where each element has a name associated with it.
    
    This is similar to `NamedDomainObjectContainer`, however a `NamedDomainObjectList` doesn't manage the objects in the collection.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/providers/collections/kotlin/build.gradle.kts

    }
    // end::ndos[]
    
    // tag::ndol[]
    
    abstract class MyPluginExtensionNamedDomainObjectList {
        // Define a named domain object list to hold Person objects
        private val people: NamedDomainObjectList<Person> = project.objects.namedDomainObjectList(Person::class)
    
        // Add a person to the container
        fun addPerson(name: String) {
            people.plus(name)
        }
    }
    // end::ndol[]
    
    // tag::ndoc[]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:14:15 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/providers/collections/groovy/build.gradle

            people.create(name)
        }
    }
    // end::ndos[]
    
    // tag::ndol[]
    
    abstract class MyPluginExtensionNamedDomainObjectList {
        // Define a named domain object container to hold Person objects
        NamedDomainObjectList<Person> people = project.container(Person)
    
        // Add a person to the container
        void addPerson(String name) {
            people.create(name: name)
        }
    }
    // end::ndol[]
    
    // tag::ndoc[]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:14:15 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top