|
|
@ -242,14 +242,20 @@ public class Utils { |
|
|
|
ClassLoader ctxClassLoader = Thread.currentThread().getContextClassLoader(); |
|
|
|
ClassLoader ctxClassLoader = Thread.currentThread().getContextClassLoader(); |
|
|
|
if (ctxClassLoader != null) { |
|
|
|
if (ctxClassLoader != null) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
return clazz = ctxClassLoader.loadClass(className); |
|
|
|
return ctxClassLoader.loadClass(className); |
|
|
|
} catch (ClassNotFoundException e) { |
|
|
|
} catch (ClassNotFoundException e) { |
|
|
|
// skip
|
|
|
|
// skip
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
clazz = Class.forName(className); |
|
|
|
return Class.forName(className); |
|
|
|
|
|
|
|
} catch (ClassNotFoundException e) { |
|
|
|
|
|
|
|
// skip
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
return ClassLoaderFactory.loadClass(className); |
|
|
|
} catch (ClassNotFoundException e) { |
|
|
|
} catch (ClassNotFoundException e) { |
|
|
|
// skip
|
|
|
|
// skip
|
|
|
|
} |
|
|
|
} |
|
|
|