|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
com.sun.javatest.util.PathClassLoader
public class PathClassLoader
A class loader for loading classes from a path of directories, zip files and jar files.
| Constructor Summary | |
|---|---|
PathClassLoader(java.io.File[] path)
Create a PathCloader, specifying an array of files for the path. |
|
PathClassLoader(java.io.File baseDir,
java.lang.String pathString)
Create a PathClassLoader, specifying a path and a base directory for any relative files on the path. |
|
PathClassLoader(java.lang.String pathString)
Create a PathClassLoader, specifying a path. |
|
| Method Summary | |
|---|---|
protected java.lang.Class |
loadClass(java.lang.String name,
boolean resolve)
Attempt to load a class if it is not already loaded, and optionally resolve any imports it might have. |
| Methods inherited from class java.lang.ClassLoader |
|---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathClassLoader(java.lang.String pathString)
pathString - a string containing a sequence of
file paths separated by the platform-specific file
separator, identifying a sequence of locations in which
to look for classes to be loadedFile.pathSeparator
public PathClassLoader(java.io.File baseDir,
java.lang.String pathString)
baseDir - the base directory for any relative
files on the pathpathString - a string containing a sequence of
file paths separated by the platform-specific file
separator, identifying a sequence of locations in which
to look for classes to be loadedFile.pathSeparatorpublic PathClassLoader(java.io.File[] path)
path - an array of files, identifying a sequence of locations in which
to look for classes to be loaded| Method Detail |
|---|
protected java.lang.Class loadClass(java.lang.String name,
boolean resolve)
throws java.lang.ClassNotFoundException
loadClass in class java.lang.ClassLoadername - The fully-qualified name of the class to load.resolve - True if imports should be resolved, false otherwise.
java.lang.ClassNotFoundException - if the class was not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||