| java.lang.Object jodd.util.ClassLoaderUtil
ClassLoaderUtil | public class ClassLoaderUtil (Code) | | |
addClassPath | public static void addClassPath(String path, URLClassLoader classLoader)(Code) | | Adds additional path to system class loader CLASSPATH during runtime.
This is done by using reflection since addURL method of URLClassLoader
is protected.
|
getFullClassPath | public static URL[] getFullClassPath(Class clazz)(Code) | | Returns complete class path from all availiable URLClassLoaders
starting from class loader that has loaded the specified class.
|
getFullClassPath | public static URL[] getFullClassPath(ClassLoader classLoader)(Code) | | Returns complete class path from all availiable URLClassLoader s.
|
loadClass | public static Class loadClass(String className, Class callingClass) throws ClassNotFoundException(Code) | | Loads class dynamically, more reliable then Class.forName .
Uses current thread classloader, then Class.forName and, finally,
class loader of the calling class, if class is provided.
|
|
|