|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.aspectwerkz.ContextClassLoader
Utility methods dealing with the context class loader. Fail-over is provided to the default class loader.
| Constructor Summary | |
ContextClassLoader()
|
|
| Method Summary | |
static ClassLoader |
getLoader()
Returns the context class loader. |
static InputStream |
getResourceAsStream(String name)
Loads a resource from the context class loader or, if that fails, from the default class loader, as stream |
static InputStream |
getResourceAsStream(String name,
ClassLoader loader)
Loads a resource from the given class loader as stream |
static Class |
loadClass(String name)
Loads a class from the context class loader or, if that fails, from the default class loader. |
static URL |
loadResource(String name)
Loads a resource from the context class loader or, if that fails, from the default class loader. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContextClassLoader()
| Method Detail |
public static Class loadClass(String name)
throws ClassNotFoundException
name - is the name of the class to load.
Class object.
ClassNotFoundException - if the class was not found.public static URL loadResource(String name)
name - is the name of the resource to load.
URL object.public static InputStream getResourceAsStream(String name)
name - is the name of the resource to load.
InputStream object.
public static InputStream getResourceAsStream(String name,
ClassLoader loader)
name - is the name of the resource to load.loader -
InputStream object.public static ClassLoader getLoader()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||