Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for getClassLoader (0.24 sec)

  1. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

          return true;
        }
      }
    
      private WeakReference<ClassLoader> useFrqInSeparateLoader() throws Exception {
        final ClassLoader myLoader = getClass().getClassLoader();
        URLClassLoader sepLoader = new URLClassLoader(getClassPathUrls(), myLoader.getParent());
        // sepLoader is the loader that we will use to load the parallel FinalizableReferenceQueue (FRQ)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  2. guava-gwt/test/com/google/common/GwtTestSuite.java

     */
    public class GwtTestSuite extends TestCase {
      public static Test suite() throws IOException {
        GWTTestSuite suite = new GWTTestSuite();
        for (ClassInfo info
            : ClassPath.from(GwtTestSuite.class.getClassLoader()).getTopLevelClasses()) {
          if (info.getName().endsWith("_gwt")) {
            Class<?> clazz = info.load();
            // TODO(cpovirk): why does asSubclass() throw? Is it something about ClassLoaders?
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 23 13:24:59 GMT 2016
    - 1.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

      }
    
      private static Object newProxyWithEqualsForInterfaces(Class<?>... interfaces) {
        return Proxy.newProxyInstance(
            AbstractInvocationHandlerTest.class.getClassLoader(),
            interfaces,
            new DelegatingInvocationHandlerWithEquals("a string"));
      }
    
      private static class DelegatingInvocationHandler extends AbstractInvocationHandler
          implements Serializable {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

              }
            };
        Future<?> future = newFutureInstance();
        future
            .getClass()
            .getMethod(
                "setFuture",
                future.getClass().getClassLoader().loadClass(ListenableFuture.class.getName()))
            .invoke(future, badFuture);
        CancellationException expected = assertThrows(CancellationException.class, () -> future.get());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

      private static <T> T newProxy(Class<T> interfaceType, InvocationHandler handler) {
        Object object =
            Proxy.newProxyInstance(
                interfaceType.getClassLoader(), new Class<?>[] {interfaceType}, handler);
        return interfaceType.cast(object);
      }
    
      @ParametricNullness
      private <T extends @Nullable Object> T callWithTimeout(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 27 14:21:11 GMT 2023
    - 9.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/EnumsTest.java

        assertEquals("BAR", bar.getName());
        assertFalse(bar.isAnnotationPresent(ExampleAnnotation.class));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Class.getClassLoader()
      private URL[] getClassPathUrls() {
        ClassLoader classLoader = getClass().getClassLoader();
        return classLoader instanceof URLClassLoader
            ? ((URLClassLoader) classLoader).getURLs()
            : parseJavaClassPath().toArray(new URL[0]);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

              }
            };
        Future<?> future = newFutureInstance();
        future
            .getClass()
            .getMethod(
                "setFuture",
                future.getClass().getClassLoader().loadClass(ListenableFuture.class.getName()))
            .invoke(future, badFuture);
        CancellationException expected = assertThrows(CancellationException.class, () -> future.get());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

                  "xml")
              .transform("com.google.common."::concat)
              .toSet();
    
      public void testClassesHaveOverrides() throws Exception {
        for (ClassInfo info : ClassPath.from(getClass().getClassLoader()).getAllClasses()) {
          if (!GUAVA_PACKAGES.contains(info.getPackageName())) {
            continue;
          }
          if (info.getName().endsWith("GwtSerializationDependencies")) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

                  "xml")
              .transform("com.google.common."::concat)
              .toSet();
    
      public void testClassesHaveOverrides() throws Exception {
        for (ClassInfo info : ClassPath.from(getClass().getClassLoader()).getAllClasses()) {
          if (!GUAVA_PACKAGES.contains(info.getPackageName())) {
            continue;
          }
          if (info.getName().endsWith("GwtSerializationDependencies")) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/Resources.java

      public static URL getResource(String resourceName) {
        ClassLoader loader =
            MoreObjects.firstNonNull(
                Thread.currentThread().getContextClassLoader(), Resources.class.getClassLoader());
        URL url = loader.getResource(resourceName);
        checkArgument(url != null, "resource %s not found.", resourceName);
        return url;
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 7.4K bytes
    - Viewed (0)
Back to top