Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for onReuse (0.1 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/initialization/ImmutableClassLoaderScope.java

        }
    
        @Override
        public boolean defines(Class<?> clazz) {
            return localClassLoader.equals(clazz.getClassLoader());
        }
    
        @Override
        public void onReuse() {
            parent.onReuse();
            listener.childScopeCreated(parent.getId(), id, origin);
            listener.classloaderCreated(id, id.localId(), localClassLoader, classPath, classpathImplementationHash);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 20:19:43 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/provider/KotlinScriptClassloadingCache.kt

    ) {
    
        private
        val cache: CrossBuildInMemoryCache<ProgramId, CompiledScript> = cacheFactory.newCache()
    
        fun get(key: ProgramId): CompiledScript? =
            cache.getIfPresent(key)?.also { it.onReuse() }
    
        fun put(key: ProgramId, loadedScriptClass: CompiledScript) {
            cache.put(key, loadedScriptClass)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/CompiledScript.kt

     */
    
    package org.gradle.kotlin.dsl.execution
    
    import org.gradle.internal.classpath.ClassPath
    
    
    internal
    interface CompiledScript {
        val program: Class<*>
        val classPath: ClassPath
    
        fun onReuse()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 819 bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/CompiledScript.java

         */
        boolean getHasMethods();
    
        Class<? extends T> loadClass();
    
        D getData();
    
        /**
         * Called when this script is reused in a new build invocation.
         */
        void onReuse();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 18 23:26:14 UTC 2019
    - 1.1K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/initialization/RootClassLoaderScope.java

        }
    
        @Override
        public ClassLoaderScope lock() {
            return this;
        }
    
        @Override
        public boolean isLocked() {
            return true;
        }
    
        @Override
        public void onReuse() {
            // Nothing to do
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 20:19:43 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/initialization/DefaultClassLoaderScope.java

            locked = true;
            return this;
        }
    
        @Override
        public boolean isLocked() {
            return locked;
        }
    
        @Override
        public void onReuse() {
            parent.onReuse();
            listener.childScopeCreated(parent.getId(), id, origin);
            if (!export.isEmpty()) {
                listener.classloaderCreated(this.id, id.exportId(), effectiveExportClassLoader, export, null);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 20:19:43 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/CrossBuildInMemoryCachingScriptClassCache.java

            HashCode hash = source.getResource().getContentHash();
            if (cached != null) {
                if (hash.equals(cached.hash)) {
                    cached.compiledScript.onReuse();
                    return Cast.uncheckedCast(cached.compiledScript);
                }
            }
            CompiledScript<T, M> compiledScript = delegate.compile(source, scriptBaseClass, target, targetScope, operation, verifier);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Dec 09 15:05:17 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/provider/KotlinScriptEvaluator.kt

                    }
                    return loadedClass!!
                }
    
            @Synchronized
            override fun onReuse() {
                scope?.let {
                    // Recreate the script scope and ClassLoader, so that things that use scopes are notified that the scope exists
                    it.onReuse()
                    require(loadedClass!!.classLoader == it.localClassLoader)
                }
            }
    
            private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 10:23:24 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/internal/initialization/ClassLoaderScope.java

         * been discarded to reduce memory pressure.
         */
        void onReuse();
    
        ClassLoaderScope getOriginalScope();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 20:19:43 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/SimplifiedKotlinScriptEvaluator.kt

        }
    }
    
    
    class DummyCompiledScript(override val program: Class<*>) : CompiledScript {
    
        override val classPath: ClassPath
            get() = ClassPath.EMPTY
    
        override fun onReuse() {
        }
    
        override fun equals(other: Any?) = when {
            other === this -> true
            other == null || other.javaClass != this.javaClass -> false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 19:59:56 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top