Class ClassLoaderUtil

  • Direct Known Subclasses:
    JakartaClassLoaderUtil

    public class ClassLoaderUtil
    extends java.lang.Object
    Author:
    Daniel Meyer
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassLoaderUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.ClassLoader getClassloader​(java.lang.Class<?> clazz)  
      static java.lang.ClassLoader getContextClassloader()  
      static java.lang.ClassLoader getServletContextClassloader​(javax.servlet.ServletContextEvent sce)  
      static void setContextClassloader​(java.lang.ClassLoader classLoader)  
      static java.lang.ClassLoader switchToProcessEngineClassloader()
      Switch the current Thread ClassLoader to the ProcessEngine's to assure the loading of the engine classes during job execution.
      • Methods inherited from class java.lang.Object

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

      • ClassLoaderUtil

        public ClassLoaderUtil()
    • Method Detail

      • getContextClassloader

        public static java.lang.ClassLoader getContextClassloader()
      • getClassloader

        public static java.lang.ClassLoader getClassloader​(java.lang.Class<?> clazz)
      • setContextClassloader

        public static void setContextClassloader​(java.lang.ClassLoader classLoader)
      • getServletContextClassloader

        public static java.lang.ClassLoader getServletContextClassloader​(javax.servlet.ServletContextEvent sce)
      • switchToProcessEngineClassloader

        public static java.lang.ClassLoader switchToProcessEngineClassloader()
        Switch the current Thread ClassLoader to the ProcessEngine's to assure the loading of the engine classes during job execution.
        Returns:
        the current Thread ClassLoader