Package org.camunda.bpm.engine.impl.util
Class ClassLoaderUtil
- java.lang.Object
-
- org.camunda.bpm.engine.impl.util.ClassLoaderUtil
-
public class ClassLoaderUtil extends Object
- Author:
- Daniel Meyer
-
-
Constructor Summary
Constructors Constructor Description ClassLoaderUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassLoader
getClassloader(Class<?> clazz)
static ClassLoader
getContextClassloader()
static ClassLoader
getServletContextClassloader(javax.servlet.ServletContextEvent sce)
static void
setContextClassloader(ClassLoader classLoader)
static ClassLoader
switchToProcessEngineClassloader()
Switch the current Thread ClassLoader to the ProcessEngine's to assure the loading of the engine classes during job execution.
-
-
-
Method Detail
-
getContextClassloader
public static ClassLoader getContextClassloader()
-
getClassloader
public static ClassLoader getClassloader(Class<?> clazz)
-
setContextClassloader
public static void setContextClassloader(ClassLoader classLoader)
-
getServletContextClassloader
public static ClassLoader getServletContextClassloader(javax.servlet.ServletContextEvent sce)
-
switchToProcessEngineClassloader
public static 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
-
-