Package org.apache.uima.internal.util
Class MsgLocalizationClassLoader.CallClimbingClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- org.apache.uima.internal.util.MsgLocalizationClassLoader.CallClimbingClassLoader
-
- Enclosing class:
- MsgLocalizationClassLoader
static class MsgLocalizationClassLoader.CallClimbingClassLoader extends java.lang.ClassLoader
One instance of this class made Must be thread-safe
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.ThreadLocal<java.lang.ClassLoader>
original_thread_context_class_loader
This value is set / cleared in a try / finally block, from the value of originalContextClassLoader in the two classes org.apache.uima.InternationalizedRuntimeException and org.apache.uima.InternationalizedException The purpose is to enable using the class loader from the context where the exception was created.
-
Constructor Summary
Constructors Constructor Description CallClimbingClassLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<?>
findClass(java.lang.String name)
Called after findLoadedClass has returned null Delegates loading in specific orderjava.net.URL
getResource(java.lang.String name)
protected java.lang.Class<?>
loadClass(java.lang.String name, boolean resolve)
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Field Detail
-
original_thread_context_class_loader
static final java.lang.ThreadLocal<java.lang.ClassLoader> original_thread_context_class_loader
This value is set / cleared in a try / finally block, from the value of originalContextClassLoader in the two classes org.apache.uima.InternationalizedRuntimeException and org.apache.uima.InternationalizedException The purpose is to enable using the class loader from the context where the exception was created.
-
-
Method Detail
-
loadClass
protected java.lang.Class<?> loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
- Overrides:
loadClass
in classjava.lang.ClassLoader
- Throws:
java.lang.ClassNotFoundException
-
findClass
protected java.lang.Class<?> findClass(java.lang.String name) throws java.lang.ClassNotFoundException
Called after findLoadedClass has returned null Delegates loading in specific order- Overrides:
findClass
in classjava.lang.ClassLoader
- Throws:
java.lang.ClassNotFoundException
-
getResource
public java.net.URL getResource(java.lang.String name)
- Overrides:
getResource
in classjava.lang.ClassLoader
-
-