Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for discardListener (0.49 sec)

  1. platforms/core-configuration/input-tracking/src/main/java/org/gradle/internal/configuration/inputs/InstrumentedInputs.java

            return LISTENER.get();
        }
    
        public static void setListener(InstrumentedInputsListener listener) {
            LISTENER.set(listener);
        }
    
        public static void discardListener() {
            setListener(NoOpInputsListener.INSTANCE);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/initialization/InstrumentedExecutionAccessListenerRegistry.kt

    ) : Stoppable {
    
        init {
            InstrumentedExecutionAccess.setListener(instrumentedExecutionAccessListener)
        }
    
        override fun stop() {
            InstrumentedExecutionAccess.discardListener()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/internal/classpath/InstrumentedExecutionAccess.java

        private static Listener listener() {
            return LISTENER.get();
        }
    
        public static void setListener(Listener listener) {
            LISTENER.set(listener);
        }
    
        public static void discardListener() {
            LISTENER.set(NO_OP);
        }
    
        /**
         * Called by generated code
         *
         * Invoked when the code accesses the injected service of type that disallowed at execution time (eg. Project)
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 17 20:16:53 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/internal/classpath/InstrumentedTest.groovy

    import spock.lang.Specification
    
    class InstrumentedTest extends Specification {
        @Rule
        final SetSystemProperties systemProperties = new SetSystemProperties()
    
        def cleanup() {
            InstrumentedInputs.discardListener()
        }
    
        def "notifies listener when system property is used"() {
            def listener = withInstrumentedInputsListener()
    
            System.setProperty("prop", "value")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/DefaultConfigurationCache.kt

            startCollectingCacheFingerprint()
            InstrumentedInputs.setListener(instrumentedInputAccessListener)
        }
    
        private
        fun doneWithWork() {
            InstrumentedInputs.discardListener()
            cacheFingerprintController.stopCollectingFingerprint()
        }
    
        private
        fun saveModel(model: Any) {
            saveToCache(
                stateType = StateType.Model
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/internal/classpath/DefaultCachedClasspathTransformerTest.groovy

            cl.readProperty()
    
            then:
            1 * listener.systemPropertyQueried("prop", null, SystemPropertyAccessingThing.name)
            0 * listener._
    
            cleanup:
            InstrumentedInputs.discardListener()
        }
    
        def "transforms Java lambda Action implementations so they can be serialized"() {
            given:
            def cl = transformAndLoad(ClassWithActionLambda)
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.8K bytes
    - Viewed (0)
Back to top