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