Method Summary |
|
public static boolean | classExists(ClassLoader loader, String className) Check if a classloader has a classname resource.
Parameters: loader - the classloader to look it. Parameters: className - the name of the class to look for. |
public static String | classNameToResource(String className) Return the resource name of a class name.
Parameters: className - the name of the class to convert. |
public static File | getClassSource(Class c) Find the directory or jar file the class has been loaded from.
Parameters: c - the class whose location is required. |
public static ClassLoader | getContextClassLoader() JDK1.1 compatible access to set the context class loader.
the ClassLoader instance being used as the contextclassloader on the current thread. |
public static File | getResourceSource(ClassLoader c, String resource) Find the directory or a give resource has been loaded from.
Parameters: c - the classloader to be consulted for the source Parameters: resource - the resource whose location is required. |
public static boolean | isContextLoaderAvailable() |
public static void | setContextClassLoader(ClassLoader loader) |