[ adempiere-ZK Web Client-2721921 ] cache reset

This commit is contained in:
Heng Sin Low 2009-03-30 17:06:43 +00:00
parent c9dfc870f9
commit 7a5db01b5b
1 changed files with 5 additions and 1 deletions

View File

@ -84,9 +84,13 @@ public final class ProcessUtil {
}
//Get Class
Class<?> processClass = null;
//use context classloader if available
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
if (classLoader == null)
classLoader = ProcessUtil.class.getClassLoader();
try
{
processClass = Class.forName (className);
processClass = classLoader.loadClass(className);
}
catch (ClassNotFoundException ex)
{