Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for NamedDomainObjectList (0.26 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. subprojects/core/src/main/java/org/gradle/api/internal/DefaultNamedDomainObjectList.java

        }
    
        @Override
        public NamedDomainObjectList<T> named(Spec<String> nameFilter) {
            Spec<T> spec = convertNameToElementFilter(nameFilter);
            return new DefaultNamedDomainObjectList<>(this, nameFilter, createFilter(spec), getInstantiator(), getNamer());
        }
    
        @Override
        public NamedDomainObjectList<T> matching(Closure spec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. 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)
  5. subprojects/core-api/src/main/java/org/gradle/api/model/ObjectFactory.java

         * @param <T> The type of objects for the domain object set to contain.
         * @return The domain object list.
         * @since 6.1
         */
        <T> NamedDomainObjectList<T> namedDomainObjectList(Class<T> elementType);
    
        /**
         * Creates a {@link Property} implementation to hold values of the given type. The property has no initial value.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. 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)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

            """
    
            expect:
            succeeds()
        }
    
        def "plugin can create a NamedDomainObjectList instance that uses a named managed type"() {
            given:
            buildFile """
                interface NamedThing extends Named { }
    
                def container = project.objects.namedDomainObjectList(NamedThing)
                assert container != null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  8. testing/architecture-test/src/changes/archunit-store/public-api-methods-return-allowed-types.txt

    Method <org.gradle.api.NamedDomainObjectList.matching(groovy.lang.Closure)> has arguments/return type groovy.lang.Closure that is not Gradle public API or primitive or built-in JDK classes or Kotlin classes in (NamedDomainObjectList.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 12:21:31 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top