Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for ConfigurationCacheableIdFactory (0.4 sec)

  1. subprojects/core/src/main/java/org/gradle/internal/id/ConfigurationCacheableIdFactory.java

     * <p>
     * Usage of this factory in object factories ensures that ids are reused consistently when loading from the configuration cache.
     */
    @ThreadSafe
    @ServiceScope(Scope.BuildTree.class)
    public class ConfigurationCacheableIdFactory {
    
        private static final long USED_ASSIGNED_ID_MARKER = -1;
    
        private final AtomicLong sequence = new AtomicLong(0);
    
        /**
         * Creates a new unique id.
         * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/project/taskfactory/TaskIdentityFactory.java

     */
    @ThreadSafe
    @ServiceScope(Scope.BuildTree.class)
    public class TaskIdentityFactory {
    
        private final ConfigurationCacheableIdFactory idFactory;
    
        public TaskIdentityFactory(ConfigurationCacheableIdFactory idFactory) {
            this.idFactory = idFactory;
        }
    
        /**
         * Create a task identity.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/internal/id/ConfigurationCacheableIdFactoryTest.groovy

    import spock.lang.Specification
    
    class ConfigurationCacheableIdFactoryTest extends Specification {
    
        def "creating ids after loading is not allowed"() {
            def factory = new ConfigurationCacheableIdFactory()
    
            when:
            factory.idRecreated()
            factory.idRecreated()
            then:
            noExceptionThrown()
    
            when:
            factory.createId()
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 23 15:27:22 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. subprojects/core/src/testFixtures/groovy/org/gradle/api/internal/project/taskfactory/TestTaskIdentities.java

            return DEFAULT_FACTORY.create(name, type, project);
        }
    
        public static TaskIdentityFactory factory() {
            AtomicLong idCounter = new AtomicLong(0);
            ConfigurationCacheableIdFactory idFactory = new ConfigurationCacheableIdFactory() {
                @Override
                public long createId() {
                    return idCounter.incrementAndGet();
                }
    
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 24 11:56:02 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/TransformStepNodeFactory.java

     */
    @ThreadSafe
    @ServiceScope(Scope.BuildTree.class)
    public class TransformStepNodeFactory {
    
        private final ConfigurationCacheableIdFactory idFactory;
    
        public TransformStepNodeFactory(ConfigurationCacheableIdFactory idFactory) {
            this.idFactory = idFactory;
        }
    
        /**
         * Create an initial transform step node.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 14:54:57 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/internal/id/ConfigurationCacheableIdFactoryIntegrationTest.groovy

        @Requires(IntegTestPreconditions.NotConfigCached)
        def "unable to create new configuration-cacheable ids after load"() {
            buildFile << """
                def factory = gradle.services.get(${ConfigurationCacheableIdFactory.name})
    
                task run {
                    doLast {
                        def id = factory.createId()
                        println("Created new id: \$id")
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/buildtree/BuildTreeScopeServices.java

    import org.gradle.internal.enterprise.core.GradleEnterprisePluginManager;
    import org.gradle.internal.event.ListenerManager;
    import org.gradle.internal.event.ScopedListenerManager;
    import org.gradle.internal.id.ConfigurationCacheableIdFactory;
    import org.gradle.internal.instantiation.InstantiatorFactory;
    import org.gradle.internal.problems.DefaultProblemDiagnosticsFactory;
    import org.gradle.internal.problems.DefaultProblemLocationAnalyzer;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/util/internal/NameValidatorTest.groovy

    import org.gradle.api.internal.project.taskfactory.TaskInstantiator
    import org.gradle.api.internal.tasks.DefaultSourceSetContainer
    import org.gradle.internal.id.ConfigurationCacheableIdFactory
    import org.gradle.internal.instantiation.InstantiationScheme
    import org.gradle.nativeplatform.internal.DefaultFlavorContainer
    import org.gradle.util.AttributeTestUtil
    import org.gradle.util.Path
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 13 22:27:15 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractSpockTaskTest.groovy

    import org.gradle.api.internal.project.taskfactory.TaskInstantiator
    import org.gradle.api.specs.Spec
    import org.gradle.cache.internal.TestCrossBuildInMemoryCacheFactory
    import org.gradle.internal.id.ConfigurationCacheableIdFactory
    import org.gradle.internal.Actions
    import org.gradle.internal.MutableBoolean
    import org.gradle.internal.reflect.DirectInstantiator
    import org.gradle.test.fixtures.AbstractProjectBuilderSpec
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 23 14:27:55 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top