Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 585 for classloaders (0.18 sec)

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

         */
        ClassLoaderScope createLockedChild(String id, @Nullable ClassLoaderScopeOrigin origin, ClassPath localClasspath, @Nullable HashCode classpathImplementationHash, @Nullable Function<ClassLoader, ClassLoader> localClassLoaderFactory);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 20:19:43 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

    /**
     * Unit test for {@link FinalizableReferenceQueue}.
     *
     * @author Bob Lee
     */
    // - depends on details of GC and classloading
    // - .class files aren't available
    // - possibly no real concept of separate ClassLoaders?
    @AndroidIncompatible
    @GwtIncompatible
    public class FinalizableReferenceQueueTest extends TestCase {
    
      private @Nullable FinalizableReferenceQueue frq;
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/project/antbuilder/ClassPathToClassLoaderCache.java

                        LOG.debug("Classloader cache miss for classpath : {}. Creating classloader.", libClasspath.getAsURIs());
                    }
                    // Lock is held while creating ClassLoader - nothing else can happen while this is running
                    ClassLoader classLoader = factory.create();
                    cachedClassLoader = new CachedClassLoader(libClasspath, classLoader);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 7K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/ServiceLocatorTest.groovy

            result instanceof String
            1 * classLoader.getResources("META-INF/services/java.lang.String") >> Collections.enumeration([serviceFile])
            1 * classLoader.loadClass('org.gradle.ImplClass') >> String
        }
    
        def "uses union of resources found in all ClassLoaders"() {
            def ClassLoader classLoader2 = Mock()
            def serviceLocator = new DefaultServiceLocator(classLoader, classLoader2)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/plugin/ScriptPluginClassLoadingIntegrationTest.groovy

                apply from: "script.gradle"
    
                try {
                    getClass().classLoader.loadClass(pluginClass.name)
                    assert false
                } catch (ClassNotFoundException ignore) {
                    println "not in root"
                } finally {
                    getClass().classLoader.close()
                }
    
            """
    
            file("script.gradle") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:34 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/loader/DefaultToolingImplementationLoaderTest.groovy

            then:
            consumerConnection.delegate.class != connectionImplementation //different classloaders
            consumerConnection.delegate.class.name == connectionImplementation.name
            consumerConnection.delegate.configured
    
            where:
            connectionImplementation | adapter
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceIntegrationTest.groovy

            result.assertNotOutput("service:")
        }
    
        @ToBeImplemented
        @Issue("https://github.com/gradle/gradle/issues/17559")
        def "service provided by a plugin cannot be shared by subprojects with different classloaders"() {
            createDirs("plugin1", "plugin2", "subproject1", "subproject2")
            settingsFile """
            pluginManagement {
                includeBuild 'plugin1'
                includeBuild 'plugin2'
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 61K bytes
    - Viewed (0)
  8. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/DefaultSerializerRegistry.java

        // We are using a ConcurrentHashMap here because:
        //   - We don't want to use a Set with CLASS_COMPARATOR, since that would treat two classes with the same name originating from different classloaders as identical, allowing only one in the Set.
        //   - ConcurrentHashMap.newKeySet() isn't available on Java 6, yet, and that is where this code needs to run.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildServiceIntegrationTest.groovy

            and: 'classloader1 is reused'
            outputContains 'probe(classloader1) => 4'
            outputContains 'probe(classloader1) => 5'
            outputContains 'probe(classloader1) => 6'
    
            and: 'classloader2 is reused'
            outputContains 'probe(classloader2) => 4'
            outputContains 'probe(classloader2) => 5'
            outputContains 'probe(classloader2) => 6'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 11:47:23 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  10. maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java

        /**
         * Use a WeakHashMap here, so the keys (Class objects) can be garbage collected.
         * This approach prevents permgen space overflows due to retention of discarded
         * classloaders.
         */
        private static final Map<Class<?>, WeakReference<ClassMap>> CLASS_MAPS = new WeakHashMap<>();
    
        static final int EOF = -1;
    
        static final char PROPERTY_START = '.';
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Dec 05 08:11:33 UTC 2023
    - 10.7K bytes
    - Viewed (0)
Back to top