|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.util.ContextClassLoader
public final class ContextClassLoader
Utility methods dealing with the context class loader. Fail-over is provided to the default class loader.
| Constructor Summary | |
|---|---|
ContextClassLoader()
|
|
| Method Summary | |
|---|---|
static Class |
forName(ClassLoader loader,
String name)
Loads a class starting from the given class loader (can be null, then use default class loader) |
static Class |
forName(String name)
Loads a class from the context class loader or, if that fails, from the default class loader. |
static ClassLoader |
getLoader()
Returns the context 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 forName(ClassLoader loader,
String name)
throws ClassNotFoundException
loader - name - of class to load
ClassNotFoundException
public static Class forName(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 ClassLoader getLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||