Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for ClassLoader (0.22 sec)

  1. guava-tests/test/com/google/common/reflect/ClassPathTest.java

        URL url2 = new URL("file:/b");
        URLClassLoader classloader = new URLClassLoader(new URL[] {url1, url2}, null);
        assertThat(ClassPath.getClassPathEntries(classloader))
            .containsExactly(new File("/a"), classloader, new File("/b"), classloader);
      }
    
      @AndroidIncompatible // Android forbids null parent ClassLoader
      public void testClassPathEntries_urlClassLoader_withParent() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/ClassPath.java

        }
        return builder.build();
      }
    
      @VisibleForTesting
      static ImmutableMap<File, ClassLoader> getClassPathEntries(ClassLoader classloader) {
        LinkedHashMap<File, ClassLoader> entries = Maps.newLinkedHashMap();
        // Search parent first, since it's the order ClassLoader#loadClass() uses.
        ClassLoader parent = classloader.getParent();
        if (parent != null) {
          entries.putAll(getClassPathEntries(parent));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        Closeable frq = (Closeable) sepFrqUserFrqF.get(null);
        frq.close();
    
        return new WeakReference<ClassLoader>(sepLoader);
      }
    
      private URL[] getClassPathUrls() {
        ClassLoader classLoader = getClass().getClassLoader();
        return classLoader instanceof URLClassLoader
            ? ((URLClassLoader) classLoader).getURLs()
            : parseJavaClassPath().toArray(new URL[0]);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

            ResolveTask(
                    ClassLoader classLoader,
                    CountDownLatch latch,
                    Artifact artifact,
                    RepositorySystemSession session,
                    List<ArtifactRepository> remoteRepositories,
                    ArtifactResolutionResult result) {
                this.classLoader = classLoader;
                this.latch = latch;
                this.artifact = artifact;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        URL url2 = new URL("file:/b");
        URLClassLoader classloader = new URLClassLoader(new URL[] {url1, url2}, null);
        assertThat(ClassPath.getClassPathEntries(classloader))
            .containsExactly(new File("/a"), classloader, new File("/b"), classloader);
      }
    
      @AndroidIncompatible // Android forbids null parent ClassLoader
      public void testClassPathEntries_urlClassLoader_withParent() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

            bind(SisuDiBridgeModule.class).toInstance(this);
            ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
            if (classLoader == null) {
                classLoader = getClass().getClassLoader();
            }
            if (discover) {
                injector.discover(classLoader);
            }
        }
    
        private void bindScope(
                InjectorImpl injector,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java

                    classRealm.importFromParent(imp);
                }
            }
        }
    
        private static Object getId(ClassLoader classLoader) {
            if (classLoader instanceof ClassRealm) {
                return ((ClassRealm) classLoader).getId();
            }
            return classLoader;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/FinalizableReferenceQueue.java

        // This is used by the ClassLoader-leak test in FinalizableReferenceQueueTest to disable
        // finding Finalizer on the system class path even if it is there.
        @VisibleForTesting static boolean disabled;
    
        @Override
        @CheckForNull
        public Class<?> loadFinalizer() {
          if (disabled) {
            return null;
          }
          ClassLoader systemLoader;
          try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 11 20:51:36 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

      @AndroidIncompatible // "Parent ClassLoader may not be null"; maybe avoidable if we try?
      public void testGetChecked_classUnloading() throws Exception {
        WeakReference<?> classUsedByGetChecked = doTestClassUnloading();
        GcFinalization.awaitClear(classUsedByGetChecked);
      }
    
      /**
       * Loads {@link WillBeUnloadedException} in a separate {@code ClassLoader}, calls {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/plugin/internal/DefaultPluginManager.java

                pluginManager.setupPluginRealm(pluginDescriptor, session, null, null, null);
            } catch (Exception e) {
                throw new PluginManagerException(plugin, e.getMessage(), e);
            }
    
            ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
            try {
                Thread.currentThread().setContextClassLoader(pluginDescriptor.getClassRealm());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top