org.apache.uima.internal.util
Class MsgLocalizationClassLoader
java.lang.Object
org.apache.uima.internal.util.MsgLocalizationClassLoader
public class MsgLocalizationClassLoader
- extends java.lang.Object
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.
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MsgLocalizationClassLoader
public MsgLocalizationClassLoader()
getResource
public static java.net.URL getResource(java.lang.String name)
getMsgLocalizationClassLoader
public static java.lang.ClassLoader getMsgLocalizationClassLoader()
loadClass
public static java.lang.Class<?> loadClass(java.lang.String name)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
Copyright © 2013. All Rights Reserved.