Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for ManagedFactoryRegistry (0.36 sec)

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

    package org.gradle.internal.state;
    
    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    
    @ServiceScope({Scope.Global.class, Scope.Project.class})
    public interface ManagedFactoryRegistry {
        /**
         * Looks up a {@link ManagedFactory} that can provide the given type.
         */
        ManagedFactory lookup(int id);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 985 bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultIsolatableFactoryTest.groovy

            getClassLoaderHash(_) >> TestHashCodes.hashCodeFrom(123)
        }
        def managedFactoryRegistry = Mock(ManagedFactoryRegistry)
        def snapshotter = new DefaultValueSnapshotter([], classLoaderHasher)
        def isolatableFactory = new DefaultIsolatableFactory(classLoaderHasher, managedFactoryRegistry)
    
        def "creates isolated string"() {
            expect:
            def original = "abc"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 17K bytes
    - Viewed (0)
  3. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/WorkersServices.java

            }
    
            @Provides
            IsolatableSerializerRegistry createIsolatableSerializerRegistry(ClassLoaderHierarchyHasher classLoaderHierarchyHasher, ManagedFactoryRegistry managedFactoryRegistry) {
                return new IsolatableSerializerRegistry(classLoaderHierarchyHasher, managedFactoryRegistry);
            }
    
            @Provides
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:57:50 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. subprojects/core/src/testFixtures/groovy/org/gradle/util/TestUtil.groovy

            }
            return instantiatorFactory
        }
    
        static ManagedFactoryRegistry managedFactoryRegistry() {
            if (managedFactoryRegistry == null) {
                NativeServicesTestFixture.initialize()
                managedFactoryRegistry = ProjectBuilderImpl.getGlobalServices().get(ManagedFactoryRegistry.class)
            }
            return managedFactoryRegistry
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/service/scopes/WorkerSharedUserHomeScopeServices.java

        }
    
        @Provides
        IsolatableFactory createIsolatableFactory(
            ClassLoaderHierarchyHasher classLoaderHierarchyHasher,
            ManagedFactoryRegistry managedFactoryRegistry
        ) {
            return new DefaultIsolatableFactory(classLoaderHierarchyHasher, managedFactoryRegistry);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/IsolatedImmutableManagedValue.java

    import org.gradle.internal.state.ManagedFactoryRegistry;
    
    import javax.annotation.Nullable;
    
    public class IsolatedImmutableManagedValue extends AbstractIsolatableScalarValue<Managed> {
        private final ManagedFactoryRegistry managedFactoryRegistry;
    
        public IsolatedImmutableManagedValue(Managed managed, ManagedFactoryRegistry managedFactoryRegistry) {
            super(managed);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultIsolatableFactory.java

            private final ClassLoaderHierarchyHasher classLoaderHasher;
            private final ManagedFactoryRegistry managedFactoryRegistry;
    
            IsolatableVisitor(ClassLoaderHierarchyHasher classLoaderHasher, ManagedFactoryRegistry managedFactoryRegistry) {
                this.classLoaderHasher = classLoaderHasher;
                this.managedFactoryRegistry = managedFactoryRegistry;
            }
    
            @Override
            public Isolatable<?> nullValue() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 22:53:34 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratedManagedStateTest.groovy

    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)
  9. platforms/core-configuration/dependency-management-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/dm/AttributeContainerCodecs.kt

    import org.gradle.internal.serialize.graph.writeCollection
    import org.gradle.internal.state.Managed
    import org.gradle.internal.state.ManagedFactoryRegistry
    
    
    class AttributeContainerCodec(
        private val attributesFactory: ImmutableAttributesFactory,
        private val managedFactories: ManagedFactoryRegistry
    ) : Codec<AttributeContainer> {
    
        override suspend fun WriteContext.encode(value: AttributeContainer) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/IsolatableSerializerRegistry.java

        private final ManagedFactoryRegistry managedFactoryRegistry;
    
        public IsolatableSerializerRegistry(ClassLoaderHierarchyHasher classLoaderHierarchyHasher, ManagedFactoryRegistry managedFactoryRegistry) {
            super(false);
            this.classLoaderHierarchyHasher = classLoaderHierarchyHasher;
            this.managedFactoryRegistry = managedFactoryRegistry;
            registerIsolatableSerializers();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 26.9K bytes
    - Viewed (0)
Back to top