Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for ManagedFactory (0.7 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/state/Managed.java

     */
    public interface Managed {
        /**
         * Returns a snapshot of the current state of this object. This can be passed to the {@link ManagedFactory#fromState(Class, Object)} method to recreate this object from the snapshot.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/ProviderSpec.groovy

        abstract T someValue()
    
        abstract T someOtherValue()
    
        abstract T someOtherValue2()
    
        abstract T someOtherValue3()
    
        abstract Class<T> type()
    
        abstract ManagedFactory managedFactory()
    
        boolean isNoValueProviderImmutable() {
            return false
        }
    
        String getDisplayName() {
            return "this provider"
        }
    
        def setup() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 06:53:07 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratedManagedStateTest.groovy

    import static org.gradle.internal.instantiation.generator.AsmBackedClassGeneratorTest.Param
    
    class AsmBackedClassGeneratedManagedStateTest extends AbstractClassGeneratorSpec {
        ManagedFactory generatorFactory = TestUtil.instantiatorFactory().managedFactory
        final ManagedFactoryRegistry managedFactoryRegistry = new DefaultManagedFactoryRegistry().withFactories(generatorFactory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultPropertyTest.groovy

        }
    
        @Override
        String someOtherValue2() {
            return "other2"
        }
    
        @Override
        String someOtherValue3() {
            return "other3"
        }
    
        @Override
        ManagedFactory managedFactory() {
            return new ManagedFactories.PropertyManagedFactory(TestUtil.propertyFactory())
        }
    
        def "has no value by default"() {
            expect:
            def property = property()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultIsolatableFactoryTest.groovy

            def original = instantiator.newInstance(BeanInterface)
            original.prop1 = "a"
    
            given:
            _ * managedFactoryRegistry.lookup(_) >> instantiatorFactory().managedFactory
    
            expect:
            def isolated = isolatableFactory.isolate(original)
            isolated instanceof IsolatedManagedValue
            def copy = isolated.isolate()
            !copy.is(original)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 17K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/model/NamedObjectInstantiator.java

    import org.gradle.internal.UncheckedException;
    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    import org.gradle.internal.state.Managed;
    import org.gradle.internal.state.ManagedFactory;
    import org.gradle.model.internal.asm.AsmClassGenerator;
    import org.gradle.model.internal.asm.ClassGeneratorSuffixRegistry;
    import org.gradle.model.internal.asm.ClassVisitorScope;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:37 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/InstantiatorFactory.java

    import org.gradle.internal.service.ServiceLookup;
    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    import org.gradle.internal.state.ManagedFactory;
    
    import java.lang.annotation.Annotation;
    import java.util.Collection;
    
    /**
     * Provides various mechanisms for instantiation of objects.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/IsolatableSerializerRegistry.java

    import org.gradle.internal.snapshot.impl.ShortValueSnapshot;
    import org.gradle.internal.snapshot.impl.StringValueSnapshot;
    import org.gradle.internal.state.Managed;
    import org.gradle.internal.state.ManagedFactory;
    import org.gradle.internal.state.ManagedFactoryRegistry;
    
    import java.lang.reflect.Array;
    import java.util.Collection;
    import java.util.List;
    
    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/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

            property.set((Map) null)
        }
    
        @Override
        protected void nullConvention(Object property) {
            property.convention((Map) null)
        }
    
        @Override
        ManagedFactory managedFactory() {
            return new ManagedFactories.MapPropertyManagedFactory(TestUtil.propertyFactory())
        }
    
        def property = property()
    
        def "has empty map as value by default"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

            def state = property.unpackState()
            def copy = managedFactory().fromState(property.publicType(), state)
            !copy.is(property)
            !copy.present
            copy.getOrNull() == null
    
            property.set(someValue())
            copy.getOrNull() == null
    
            def state2 = property.unpackState()
            def copy2 = managedFactory().fromState(property.publicType(), state2)
            !copy2.is(property)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 87.8K bytes
    - Viewed (0)
Back to top