Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for publicType (0.36 sec)

  1. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/DefaultFilePropertyFactory.java

            }
    
            @Override
            public boolean isImmutable() {
                return true;
            }
    
            @Override
            public Class<?> publicType() {
                return Directory.class;
            }
    
            @Override
            public Object unpackState() {
                return getAsFile();
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 09:53:33 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratedManagedStateTest.groovy

        }
    
        def canUnpackAndRecreateAbstractClassWithAbstractPropertyGetterAndSetter() {
            def bean = create(BeanWithAbstractProperty)
    
            expect:
            bean instanceof Managed
            bean.publicType() == BeanWithAbstractProperty
            !bean.isImmutable()
            def state = bean.unpackState()
            state.length == 1
            state[0] == null
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationContainer.java

            assertCanAdd(name);
            validateNameIsAllowed(name);
    
            NamedDomainObjectProvider<T> configuration = Cast.uncheckedCast(
                getInstantiator().newInstance(NamedDomainObjectCreatingProvider.class, this, name, publicType, configureAction, factory));
            addLater(configuration);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 00:10:35 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/ProviderSpec.groovy

            expect:
            provider instanceof Managed
            provider.isImmutable() == noValueProviderImmutable
            def state = provider.unpackState()
            def copy = managedFactory().fromState(provider.publicType(), state)
            !copy.is(provider) || noValueProviderImmutable
            !copy.present
            copy.getOrNull() == null
        }
    
        def "can unpack state and recreate instance when provider has value"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 06:53:07 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/ValidationActions.java

            if (instance == null) {
                return Object.class.getSimpleName();
            }
            if (instance instanceof GeneratedSubclass) {
                return ModelType.of(((GeneratedSubclass) instance).publicType()).getDisplayName();
            }
            return ModelType.typeOf(instance).getDisplayName();
        }
    
        private static String toCandidateSolution(String conversionCandidate) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 11:49:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java-base/src/integTest/groovy/org/gradle/api/plugins/JavaBasePluginTest.groovy

            when:
            project.pluginManager.apply(JavaBasePlugin)
    
            then:
            project.extensions.extensionsSchema.find { it.name == "sourceSets" }.publicType == typeOf(SourceSetContainer)
        }
    
        def "properties on convention and extension are synchronized"() {
            when:
            project.pluginManager.apply(JavaBasePlugin)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 16.4K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDefinitionIntegrationTest.groovy

                    assert false : "This should not be realized"
                }
    
                def schema = tasks.collectionSchema.elements.collectEntries { e ->
                    [ e.name, e.publicType.simpleName ]
                }
    
                // check some built-in tasks
                assert schema["help"] == "Help"
                assert schema["projects"] == "ProjectReportTask"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 14:43:53 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  8. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/IsolatableSerializerRegistry.java

            protected void serialize(Encoder encoder, IsolatedImmutableManagedValue value) throws Exception {
                encoder.writeInt(value.getValue().getFactoryId());
                encoder.writeString(value.getValue().publicType().getName());
                writeState(encoder, value.getValue().unpackState());
            }
    
            @Override
            protected IsolatedImmutableManagedValue deserialize(Decoder decoder) throws Exception {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollection.java

            setToConventionIfUnset();
            action.execute(getConfigurer());
        }
    
        @Override
        public boolean isImmutable() {
            return false;
        }
    
        @Override
        public Class<?> publicType() {
            return ConfigurableFileCollection.class;
        }
    
        @Override
        public Object unpackState() {
            return getFiles();
        }
    
        @Override
        public void finalizeValue() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:06:55 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultMapProperty.java

        public Class<K> getKeyType() {
            return keyType;
        }
    
        @Override
        public Class<V> getValueType() {
            return valueType;
        }
    
        @Override
        public Class<?> publicType() {
            return MapProperty.class;
        }
    
        @Override
        public int getFactoryId() {
            return ManagedFactories.MapPropertyManagedFactory.FACTORY_ID;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 32.6K bytes
    - Viewed (0)
Back to top