Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for extensionSchema (0.45 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/extensibility/DefaultExtensionsSchema.java

        private DefaultExtensionsSchema(Iterable<ExtensionSchema> extensionSchemas) {
            this.extensionSchemas = extensionSchemas;
        }
    
        @Override
        public Iterator<ExtensionSchema> iterator() {
            return extensionSchemas.iterator();
        }
    
        @Override
        public Iterable<ExtensionSchema> getElements() {
            return this;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. subprojects/core-api/src/main/java/org/gradle/api/plugins/ExtensionsSchema.java

     * @since 4.5
     */
    public interface ExtensionsSchema extends NamedDomainObjectCollectionSchema, Iterable<ExtensionsSchema.ExtensionSchema> {
    
        /**
         * {@inheritDoc}
         */
        @Override
        Iterable<ExtensionSchema> getElements();
    
        /**
         * Schema of an extension.
         *
         * @since 4.5
         */
        interface ExtensionSchema extends NamedDomainObjectCollectionSchema.NamedDomainObjectSchema {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 05 16:56:20 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-provider-plugins/src/test/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/DefaultProjectSchemaProviderTest.kt

        internal
        open class KotlinJvmOptionsBase : KotlinJvmOptions
    
        interface KotlinJvmOptions
    
        private
        fun <T> extensionSchema(name: String, publicType: TypeOf<T>): ExtensionsSchema.ExtensionSchema = mock {
            on { getName() } doReturn name
            on { getPublicType() } doReturn publicType
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-provider/src/test/kotlin/org/gradle/internal/declarativedsl/SettingsExtensionsSchemaTest.kt

                val extensionsMock = run {
                    val myExtensionMock = mock<MyExtension>()
                    val extensionsSchemaMock = mock<ExtensionsSchema> {
                        on { elements }.thenReturn(listOf<ExtensionSchema>(object : ExtensionSchema {
                            override fun getName(): String = "myExtension"
                            override fun getPublicType(): TypeOf<*> = TypeOf.typeOf(MyExtension::class.java)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 09:57:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/extensibility/ExtensionsStorage.java

        }
    
        private static class ExtensionHolder<T> implements ExtensionsSchema.ExtensionSchema {
            private final String name;
            private final TypeOf<T> publicType;
            protected final T extension;
    
            private ExtensionHolder(String name, TypeOf<T> publicType, T extension) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 17 11:25:34 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  6. platforms/software/antlr/src/test/groovy/org/gradle/api/plugins/antlr/AntlrPluginTest.groovy

        def 'source set extension exposes its public type'() {
            when:
            project.pluginManager.apply(AntlrPlugin)
    
            then:
            def main = project.sourceSets.main
            main.extensions.extensionsSchema.find { it.name == 'antlr' }.publicType == typeOf(AntlrSourceDirectorySet)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/Stage1BlocksAccessorClassPath.kt

        fun generateVersionCatalogAccessors(
            rootProject: Project,
            buildSrcClassLoaderScope: ClassLoaderScope,
            classLoaderHash: HashCode,
        ): AccessorsClassPath =
            rootProject.extensions.extensionsSchema
                .filter { catalogExtensionBaseType.isAssignableFrom(it.publicType) }
                .takeIf { it.isNotEmpty() }
                ?.let { versionCatalogExtensionSchemas ->
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 18:58:57 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-provider/src/main/kotlin/org/gradle/internal/declarativedsl/project/schemaFromGradleExtensions.kt

    }
    
    
    private
    fun getExtensionInfo(target: ExtensionAware): List<ExtensionInfo> {
        val annotationChecker = CachedHierarchyAnnotationChecker(Restricted::class)
        return target.extensions.extensionsSchema.elements.mapNotNull {
            val type = it.publicType.concreteClass.kotlin
            if (annotationChecker.isAnnotatedMaybeInSupertypes(type))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:07 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/DefaultConventionTest.groovy

            assert convention.create("foo", FooExtension).class != FooExtension
            assert publicTypeOf("foo") == typeOf(FooExtension)
        }
    
        private TypeOf<?> publicTypeOf(String extension) {
            convention.extensionsSchema.find { it.name == extension }.publicType
        }
    
        interface PublicExtensionType {
        }
    
        static class ExtensionWithPublicType implements HasPublicType {
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ExtensionContainerTest.groovy

            container.add "cat", new Thing("gizmo")
            container.add "meo", container.instanceGenerator.newInstance(Thing, "w")
    
            def schemaMap = container.extensionsSchema.collectEntries { [it.name, it.publicType] }
            expect:
            schemaMap == [ext: typeOf(ExtraPropertiesExtension),
                          foo: typeOf(Parent),
                          bar: typeOf(Capability),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top