- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for newNamedDomainObjectContainerUndecorated (0.73 sec)
-
subprojects/core/src/test/groovy/org/gradle/api/internal/collections/DefaultDomainObjectCollectionFactoryTest.groovy
expect: element instanceof ExtensionAware } def "creates container with undecorated elements"() { given: def container = factory.newNamedDomainObjectContainerUndecorated(ElementBean) def element = container.create("one") expect: !(element instanceof ExtensionAware) } } class ElementBean { final String name
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 12 02:49:30 UTC 2019 - 1.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/collections/DomainObjectCollectionFactory.java
* * Note that this method is here because {@link org.gradle.api.Project#container(Class)} cannot decorate the elements because of backwards compatibility. */ <T> NamedDomainObjectContainer<T> newNamedDomainObjectContainerUndecorated(Class<T> elementType); /** * Creates a {@link NamedDomainObjectContainer} for managing named objects of the specified type. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 00:47:05 UTC 2024 - 3.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/collections/DefaultDomainObjectCollectionFactory.java
this.collectionCallbackActionDecorator = collectionCallbackActionDecorator; this.mutationGuard = mutationGuard; } @Override public <T> NamedDomainObjectContainer<T> newNamedDomainObjectContainerUndecorated(Class<T> elementType) { // Do not decorate the elements, for backwards compatibility return container(elementType, instantiatorFactory.injectLenient(servicesToInject)); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 10 22:34:19 UTC 2021 - 6.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/project/DefaultProject.java
return object; } @Override public <T> NamedDomainObjectContainer<T> container(Class<T> type) { return getServices().get(DomainObjectCollectionFactory.class).newNamedDomainObjectContainerUndecorated(type); } @Override public <T> NamedDomainObjectContainer<T> container(Class<T> type, NamedDomainObjectFactory<T> factory) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:34:44 UTC 2024 - 50.2K bytes - Viewed (0)