|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectjava.lang.ClassLoader
patterntesting.runtime.experimental.XrayClassLoader
public final class XrayClassLoader
If we want to load a class and see what happens if another class (needed by the original class) is missing we need a class loader where we can control the classpath and other things.
| Constructor Summary | |
|---|---|
XrayClassLoader()
|
|
| Method Summary | |
|---|---|
protected Class<?> |
findClass(String classname)
Find class. |
Set<Class<?>> |
getLoadedClasses()
Gets the loaded classed of this classloader here. |
Class<?> |
loadClass(String classname)
Load class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XrayClassLoader()
| Method Detail |
|---|
public Class<?> loadClass(String classname)
throws ClassNotFoundException
loadClass in class ClassLoaderclassname - the classname
ClassNotFoundException - the class not found exceptionClassLoader.loadClass(java.lang.String)public Set<Class<?>> getLoadedClasses()
protected Class<?> findClass(String classname)
throws ClassNotFoundException
findClass in class ClassLoaderclassname - the classname
ClassNotFoundException - the class not found exceptionClassLoader.findClass(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||