|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
abbot.util.PathClassLoader
public class PathClassLoader
Provide a class loader that loads from a custom path. Similar to sun.misc.Launcher$AppClassLoader (the usual application class loader), except that it doesn't do the security checks that AppClassLoader does. If path given is null, uses java.class.path.
| Constructor Summary | |
|---|---|
PathClassLoader(String path)
Create a class loader that loads classes from the given path. |
|
PathClassLoader(String path,
ClassLoader parent)
Create a class loader that loads classes from the given path. |
|
| Method Summary | |
|---|---|
static String[] |
convertPathToFilenames(String path)
Returns an array of filenames (including path). |
(package private) static String[] |
convertPathToFilenames(String path,
String seps)
|
static File[] |
convertPathToFiles(String path,
String seps)
Convert the given path string into an array of File. |
String |
getClassPath()
|
(package private) static URL[] |
getURLs(String p,
String separators)
Returns an array of URLs based on the given classpath string. |
protected Class |
loadClass(String name,
boolean resolve)
|
String |
toString()
|
| Methods inherited from class java.net.URLClassLoader |
|---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
| Methods inherited from class java.security.SecureClassLoader |
|---|
defineClass, defineClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PathClassLoader(String path)
public PathClassLoader(String path,
ClassLoader parent)
| Method Detail |
|---|
public String getClassPath()
protected Class loadClass(String name,
boolean resolve)
throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundException
static URL[] getURLs(String p,
String separators)
public static String[] convertPathToFilenames(String path)
public static File[] convertPathToFiles(String path,
String seps)
static String[] convertPathToFilenames(String path,
String seps)
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||