Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for classLoader (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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 {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 25.8K bytes
    - Click Count (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 = new LinkedHashMap<>();
        // Search parent first, since it's the order ClassLoader#loadClass() uses.
        ClassLoader parent = classloader.getParent();
        if (parent != null) {
          entries.putAll(getClassPathEntries(parent));
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 24.8K bytes
    - Click Count (0)
  3. android/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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 16.5K bytes
    - Click Count (0)
  4. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 16.5K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/lang/ClassUtil.java

         * @throws ClassNotFoundRuntimeException
         *             If the class cannot be found
         * @see Class#forName(String, boolean, ClassLoader)
         */
        @SuppressWarnings("unchecked")
        public static <T> Class<T> forName(final String className, final ClassLoader loader) throws ClassNotFoundRuntimeException {
            assertArgumentNotEmpty("className", className);
            try {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

          }
          if (isAndroid()) {
            // We need not worry about class unloading under Android. Plus, this approach wouldn't work.
            return null;
          }
          ClassLoader systemLoader;
          try {
            systemLoader = ClassLoader.getSystemClassLoader();
          } catch (SecurityException e) {
            logger.info("Not allowed to access system class loader.");
            return null;
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 19:26:59 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  7. guava/src/com/google/common/base/FinalizableReferenceQueue.java

          }
          if (isAndroid()) {
            // We need not worry about class unloading under Android. Plus, this approach wouldn't work.
            return null;
          }
          ClassLoader systemLoader;
          try {
            systemLoader = ClassLoader.getSystemClassLoader();
          } catch (SecurityException e) {
            logger.info("Not allowed to access system class loader.");
            return null;
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 19:26:59 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/core/io/ResourceUtil.java

            return clazz.getName().replace('.', '/') + ".class";
        }
    
        /**
         * Returns the context class loader.
         *
         * @return the context class loader
         */
        public static ClassLoader getClassLoader() {
            return Thread.currentThread().getContextClassLoader();
        }
    
        /**
         * Returns the resource from the context class loader.
         *
         * @param path
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

            final List<String> subPackages = new ArrayList<>();
            final String path = basePackage.replace('.', '/');
            final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
            try {
                final Enumeration<java.net.URL> resources = classLoader.getResources(path);
    
                while (resources.hasMoreElements()) {
                    final java.net.URL resource = resources.nextElement();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 13:59:25 GMT 2026
    - 12.4K bytes
    - Click Count (1)
  10. android/guava/src/com/google/common/io/TempFileCreator.java

       * if previous calls have initialized the {@code PermissionSupplier} fields.
       *
       * <p>This lets us test the effects of different values of the {@code user.name} system property
       * without needing a separate VM or classloader.
       */
      @IgnoreJRERequirement // used only when Path is available (and only from tests)
      @VisibleForTesting
      static void testMakingUserPermissionsFromScratch() throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 29 18:50:14 GMT 2025
    - 11.8K bytes
    - Click Count (0)
Back to Top