Package org.apache.uima.internal.util
Class MsgLocalizationClassLoader
java.lang.Object
org.apache.uima.internal.util.MsgLocalizationClassLoader
Class Loader for loading localized messages
See https://issues.apache.org/jira/browse/UIMA-1714
Delegates to other ClassLoaders, in the following order
the class loader that loaded the 2nd previous caller
the class loader that loaded the 3rd previous caller
etc.
and finally, the thread local context loader, if it exists UIMA-3692
Note: the caller of this method is presumed to be framework code
that was, in turn, called to perform some logging or whatever,
so we skip the 1st previous caller.
Note that each of these class loaders will, in turn, delegate if they are set up to do so
Note: if a caller's class loader is the same as the previously tried one, we skip it (simple
speed optimization, and may avoid some kind of strange loop)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
One instance of this class made Must be thread-safe(package private) static class
this inner class only for purposes of getting access to the protected method to get the call stack -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MsgLocalizationClassLoader.CallClimbingClassLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoader
static URL
getResource
(String name) static Class
<?>
-
Field Details
-
MSG_LOCALIZATION_CLASS_LOADER
private static final MsgLocalizationClassLoader.CallClimbingClassLoader MSG_LOCALIZATION_CLASS_LOADER
-
-
Constructor Details
-
MsgLocalizationClassLoader
public MsgLocalizationClassLoader()
-
-
Method Details
-
getResource
-
getMsgLocalizationClassLoader
-
loadClass
- Throws:
ClassNotFoundException
-