|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
org.apache.myfaces.test.runners.TestClassLoader
public class TestClassLoader
A Classloader that delegates the loading of the classes to the parent if it is in the excluded list or does it itself otherwise. Useful for a system that sets up a classloader per Test system.
Constructor Summary | |
---|---|
TestClassLoader()
Constructs a TestCaseLoader. |
|
TestClassLoader(String classPath)
Constructs a TestCaseLoader. |
Method Summary | |
---|---|
URL |
getResource(String name)
|
InputStream |
getResourceAsStream(String name)
|
boolean |
isExcluded(String name)
Checks if path is excluded. |
Class |
loadClass(String name,
boolean resolve)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestClassLoader()
public TestClassLoader(String classPath)
Method Detail |
---|
public URL getResource(String name)
getResource
in class ClassLoader
public InputStream getResourceAsStream(String name)
getResourceAsStream
in class ClassLoader
public boolean isExcluded(String name)
name
- the name
public Class loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |