Class 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.
    • 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 order
      java.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Constructor Detail

      • CallClimbingClassLoader

        CallClimbingClassLoader()
    • Method Detail

      • loadClass

        protected java.lang.Class<?> loadClass​(java.lang.String name,
                                               boolean resolve)
                                        throws java.lang.ClassNotFoundException
        Overrides:
        loadClass in class java.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 class java.lang.ClassLoader
        Throws:
        java.lang.ClassNotFoundException
      • getResource

        public java.net.URL getResource​(java.lang.String name)
        Overrides:
        getResource in class java.lang.ClassLoader