Class CurrentClassLoader


  • public class CurrentClassLoader
    extends java.lang.Object
    Class used to set and get the global class loader used by the codegen library. This is maintained in a ThreadLocal to avoid concurrency problems. All processing in the codegen library takes place in the same thread in any case.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.ThreadLocal<java.lang.ClassLoader> current  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.ClassLoader get()  
      static void set​(java.lang.ClassLoader cl)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • current

        private static java.lang.ThreadLocal<java.lang.ClassLoader> current
    • Constructor Detail

      • CurrentClassLoader

        public CurrentClassLoader()
    • Method Detail

      • get

        public static java.lang.ClassLoader get()
      • set

        public static void set​(java.lang.ClassLoader cl)