- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for loadClass (0.06 sec)
-
guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
Class<?> sepFwrC = sepLoader.loadClass(MyFinalizableWeakReference.class.getName()); Constructor<?> sepFwrCons = sepFwrC.getConstructor(Object.class, sepFrqC); // The object that we will wrap in FinalizableWeakReference is a Stopwatch. Class<?> sepStopwatchC = sepLoader.loadClass(Stopwatch.class.getName()); assertSame(sepLoader, sepStopwatchC.getClassLoader());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 13.3K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPrompter.java
} @Override public String prompt(String message, List<String> possibleValues, String defaultReply) throws PrompterException { try { Class<?> clazz = container.getContainerRealm().loadClass(PROMPTER_CLASS); Object instance = container.lookup(clazz); Method method = clazz.getMethod("prompt", String.class, List.class, String.class);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
} } return super.loadClass(name); } }; oldClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(classReloader); abstractFutureClass = classReloader.loadClass(AbstractFuture.class.getName()); settableFutureClass = classReloader.loadClass(SettableFuture.class.getName()); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 6.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
} } return super.loadClass(name); } }; oldClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(classReloader); abstractFutureClass = classReloader.loadClass(AbstractFuture.class.getName()); settableFutureClass = classReloader.loadClass(SettableFuture.class.getName()); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 6.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
} static class DecoupledClassLoader extends URLClassLoader { public DecoupledClassLoader(URL[] urls) { super(urls); } @Override protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { // Force Finalizer to load from this class loader, not its parent. if (name.equals(Finalizer.class.getName())) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 4.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java
* クラスが見つからなかった場合 * @see java.lang.ClassLoader#loadClass(String) */ public static Class<?> loadClass(final ClassLoader loader, final String className) { assertArgumentNotNull("loader", loader); assertArgumentNotEmpty("className", className); try { return loader.loadClass(className); } catch (final ClassNotFoundException e) {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/ResourceUtilTest.java
assertTrue(junitJar.exists()); final URL url = junitJar.toURI().toURL(); final URLClassLoader loader = new URLClassLoader(new URL[] { url }); loader.loadClass(TestCase.class.getName()); } /** * @throws Exception */ public void testIsExist() throws Exception { assertEquals("1", true, ResourceUtil.isExist("CLMessages.properties"));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 4.3K bytes - Viewed (0) -
guava/src/com/google/common/base/FinalizableReferenceQueue.java
} catch (SecurityException e) { logger.info("Not allowed to access system class loader."); return null; } if (systemLoader != null) { try { return systemLoader.loadClass(FINALIZER_CLASS_NAME); } catch (ClassNotFoundException e) { // Ignore. Finalizer is simply in a child class loader. return null; } } else { return null;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Jul 11 20:51:36 UTC 2024 - 13.1K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java
final ClassLoader tccl = Thread.currentThread().getContextClassLoader(); if (tccl != null) { try { return tccl.loadClass(name); } catch (final Exception e) { // drop through... } catch (final LinkageError e) { // drop through... } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 15.3K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/ClassPath.java
* For example, {@link NoClassDefFoundError}. */ public Class<?> load() { try { return loader.loadClass(className); } catch (ClassNotFoundException e) { // Shouldn't happen, since the class name is read from the class path. throw new IllegalStateException(e); } } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jan 05 17:43:40 UTC 2022 - 24.9K bytes - Viewed (0)