- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 68 for classLoader (0.05 sec)
-
guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
@Test public void testUnloadable() throws Exception { WeakReference<ClassLoader> loaderRef = useFrqInSeparateLoader(); GcFinalization.awaitClear(loaderRef); } private URL[] getClassPathUrls() { ClassLoader classLoader = getClass().getClassLoader(); return classLoader instanceof URLClassLoader ? ((URLClassLoader) classLoader).getURLs() : parseJavaClassPath().toArray(new URL[0]); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.6K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 21:00:51 UTC 2025 - 25.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassLoaderIterator.java
assertArgumentNotNull("classLoader", classLoader); this.classLoader = classLoader; } @Override public boolean hasNext() { return classLoader != null; } @Override public ClassLoader next() { if (!hasNext()) { throw new NoSuchElementException(); } final ClassLoader result = classLoader;
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.5K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 21:00:51 UTC 2025 - 23K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceBundleUtil.java
* @param locale the locale * @param classLoader the class loader (must not be {@literal null} or empty) * @return {@link ResourceBundle} * @see ResourceBundle#getBundle(String, Locale, ClassLoader) */ public static final ResourceBundle getBundle(final String name, final Locale locale, final ClassLoader classLoader) { assertArgumentNotNull("name", name);Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 5.3K bytes - Viewed (0) -
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 classRealm) { return classRealm.getId(); } return classLoader; }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java
/** * @throws Exception */ @Test public void testIsAncestor() throws Exception { final ClassLoader cl1 = new URLClassLoader(new URL[] { new URL("file:/foo") }, null); final ClassLoader cl2 = new URLClassLoader(new URL[] { new URL("file:/bar") }, cl1); final ClassLoader cl3 = new URLClassLoader(new URL[] { new URL("file:/baz") }, cl2); assertThat(ClassLoaderUtil.isAncestor(cl3, cl2), is(true));Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
assertFalse(bar.isAnnotationPresent(ExampleAnnotation.class)); } @J2ktIncompatible private URL[] getClassPathUrls() { ClassLoader classLoader = getClass().getClassLoader(); return classLoader instanceof URLClassLoader ? ((URLClassLoader) classLoader).getURLs() : parseJavaClassPath().toArray(new URL[0]); } /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 8.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java
* disallows certain core JDK classes. */ private void runTestMethod(ClassLoader classLoader) throws Exception { ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(classLoader); try { Class<?> test = classLoader.loadClass(AbstractFutureTest.class.getName());
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.3K bytes - Viewed (0) -
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();Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 7.6K bytes - Viewed (0)