Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for getClassLoader (0.2 sec)

  1. src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java

         */
        @Test
        public void testGetClassLoader() throws Exception {
            assertThat(ClassLoaderUtil.getClassLoader(Object.class), is(sameInstance(ClassLoaderUtil.class.getClassLoader())));
    
            assertThat(ClassLoaderUtil.getClassLoader(TestCase.class), is(sameInstance(TestCase.class.getClassLoader())));
    
            final ClassLoader context = Thread.currentThread().getContextClassLoader();
            try {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

            .addEqualityGroup(classInfo(Test.class), classInfo(Test.class, getClass().getClassLoader()))
            .addEqualityGroup(
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()),
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()))
            .addEqualityGroup(new ResourceInfo(FILE, "x.txt", getClass().getClassLoader()))
            .testEquals();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/ClassPathTest.java

            .addEqualityGroup(classInfo(Test.class), classInfo(Test.class, getClass().getClassLoader()))
            .addEqualityGroup(
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()),
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()))
            .addEqualityGroup(new ResourceInfo(FILE, "x.txt", getClass().getClassLoader()))
            .testEquals();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Jul 10 17:06:37 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

      private static final ClassLoader NO_UNSAFE =
          getClassLoader(ImmutableSet.of(sun.misc.Unsafe.class.getName()));
    
      /**
       * This classloader disallows {@link sun.misc.Unsafe} and {@link AtomicReferenceFieldUpdater},
       * which will prevent us from selecting our {@code SafeAtomicHelper} strategy.
       */
      private static final ClassLoader NO_ATOMIC_REFERENCE_FIELD_UPDATER =
          getClassLoader(
              ImmutableSet.of(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 6.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

      }
    
      private static ClassLoader getClassLoader(final Set<String> blocklist) {
        final String concurrentPackage = SettableFuture.class.getPackage().getName();
        ClassLoader classLoader = AggregateFutureStateFallbackAtomicHelperTest.class.getClassLoader();
        // we delegate to the current classloader so both loaders agree on classes like TestCase
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

      private static final ClassLoader NO_UNSAFE =
          getClassLoader(ImmutableSet.of(sun.misc.Unsafe.class.getName()));
    
      /**
       * This classloader disallows {@link sun.misc.Unsafe} and {@link AtomicReferenceFieldUpdater},
       * which will prevent us from selecting our {@code SafeAtomicHelper} strategy.
       */
      private static final ClassLoader NO_ATOMIC_REFERENCE_FIELD_UPDATER =
          getClassLoader(
              ImmutableSet.of(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 6.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

      }
    
      private static ClassLoader getClassLoader(final Set<String> blocklist) {
        final String concurrentPackage = SettableFuture.class.getPackage().getName();
        ClassLoader classLoader = AggregateFutureStateFallbackAtomicHelperTest.class.getClassLoader();
        // we delegate to the current classloader so both loaders agree on classes like TestCase
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.9K bytes
    - Viewed (0)
  8. 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)
  9. src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java

         */
        public static ClassLoader getClassLoader(final Class<?> targetClass) {
            assertArgumentNotNull("targetClass", targetClass);
    
            final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
            if (contextClassLoader != null) {
                return contextClassLoader;
            }
    
            final ClassLoader targetClassLoader = targetClass.getClassLoader();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  10. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
Back to top