| java.lang.Object org.codehaus.aspectwerkz.util.ContextClassLoader
ContextClassLoader | final public class ContextClassLoader (Code) | | Utility methods dealing with the context class loader. Fail-over is provided to the default class loader.
author: Jonas BonŽr |
Method Summary | |
public static Class | forName(ClassLoader loader, String name) | public static Class | forName(String name) Loads a class from the context class loader or, if that fails, from the default class loader.
Parameters: name - is the name of the class to load. | public static ClassLoader | getLoader() Returns the context class loader. | public static URL | loadResource(String name) Loads a resource from the context class loader or, if that fails, from the default class loader.
Parameters: name - is the name of the resource to load. |
forName | public static Class forName(String name) throws ClassNotFoundException(Code) | | Loads a class from the context class loader or, if that fails, from the default class loader.
Parameters: name - is the name of the class to load. a Class object. throws: ClassNotFoundException - if the class was not found. |
getLoader | public static ClassLoader getLoader()(Code) | | Returns the context class loader.
the context class loader |
loadResource | public static URL loadResource(String name)(Code) | | Loads a resource from the context class loader or, if that fails, from the default class loader.
Parameters: name - is the name of the resource to load. a URL object. |
|
|