| java.lang.Object com.tc.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 |
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 |
getLoaderOrSystemLoader | public static ClassLoader getLoaderOrSystemLoader(ClassLoader loader)(Code) | | Returns the given loader or the sytem classloader if loader is null
Parameters: 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. |
|
|