- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for getClassLoader (6.55 sec)
-
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) -
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) -
src/main/java/org/codelibs/core/lang/FieldUtil.java
throw new ClIllegalArgumentException("field", "ECL0094", asArray(clazz.getName(), clazz.getClassLoader(), fieldClass.getName(), fieldClass.getClassLoader(), field.getName(), valueClass == null ? null : valueClass.getName(), valueClass == null ? null : valueClass.getClassLoader(), value, targetClass == null ? null : targetClass.getName(),
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 11.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 15.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceUtil.java
return clazz.getName().replace('.', '/') + ".class"; } /** * コンテキストクラスローダを返します。 * * @return コンテキストクラスローダ */ public static ClassLoader getClassLoader() { return Thread.currentThread().getContextClassLoader(); } /** * コンテキストクラスローダからリソースを返します。 * * @param path * リソースのパス。{@literal null}や空文字列であってはいけません
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 15.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/concurrent/CommonPoolUtil.java
final Thread currentThread = Thread.currentThread(); final ClassLoader orignal = currentThread.getContextClassLoader(); currentThread.setContextClassLoader(CommonPoolUtil.class.getClassLoader()); try { task.run(); } catch (final Exception e) { logger.error("Uncaught exception from " + task, e); } finally {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.5K bytes - Viewed (1) -
src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java
throw e; } catch (final Exception e) { return null; } finally { final GroovyClassLoader loader = groovyShell.getClassLoader(); loader.clearCache(); } } @Override protected String getName() { return Constants.DEFAULT_SCRIPT; }
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 4.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/ResourceBundleUtilTest.java
} /** * @throws Exception */ @Test public void testGetBundle() throws Exception { final ResourceBundle bundle = ResourceBundleUtil.getBundle("CLMessages", null, this.getClass().getClassLoader()); assertThat(bundle, is(notNullValue())); } /** * @throws Exception */ @Test public void testGetString() throws Exception {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/indexer/DocBoostMatcherTest.java
throw e; } catch (final Exception e) { return null; } finally { final GroovyClassLoader loader = groovyShell.getClassLoader(); loader.clearCache(); } } @Override protected String getName() { return Constants.DEFAULT_SCRIPT; }
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 4.6K bytes - Viewed (0)