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