abbot.util
Class PathClassLoader
java.lang.Object
|
+--java.lang.ClassLoader
|
+--java.security.SecureClassLoader
|
+--java.net.URLClassLoader
|
+--abbot.util.PathClassLoader
- Direct Known Subclasses:
- NonDelegatingClassLoader
- public class PathClassLoader
- extends URLClassLoader
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.
Methods inherited from class java.lang.ClassLoader |
addClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findNative, findSystemClass, getBootstrapClassPath, getCallerClassLoader, getGetClassLoaderPerm, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, isAncestor, loadClass, loadLibrary, resolveClass, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathClassLoader
public PathClassLoader(String path,
ClassLoader parent)
- Create a class loader that loads classes from the given path.
getClassPath
public String getClassPath()
loadClass
public Class loadClass(String name,
boolean resolve)
throws ClassNotFoundException
- Overrides:
loadClass
in class ClassLoader
getURLs
static URL[] getURLs(String p,
String separators)
convertPathToFiles
static File[] convertPathToFiles(String path,
String seps)
convertPathToFiles
static File[] convertPathToFiles(String path,
String seps,
boolean fixDrives)
Copyright © 2002-2003 Timothy Wall. All Rights Reserved.
Abbot is hosted on