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.
Nested classes inherited from class java.lang.ClassLoader |
|
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
PathClassLoader
public PathClassLoader(String path)
- Create a class loader that loads classes from the given path.
PathClassLoader
public PathClassLoader(String path,
ClassLoader parent)
- Create a class loader that loads classes from the given path.
getClassPath
public String getClassPath()
loadClass
protected Class loadClass(String name,
boolean resolve)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getURLs
static URL[] getURLs(String p,
String separators)
- Returns an array of URLs based on the given classpath string.
convertPathToFilenames
public static String[] convertPathToFilenames(String path)
- Returns an array of filenames (including path).
convertPathToFiles
public static File[] convertPathToFiles(String path,
String seps)
- Convert the given path string into an array of File.
convertPathToFilenames
static String[] convertPathToFilenames(String path,
String seps)
toString
public String toString()
Copyright © 2002-2004 Timothy Wall. All Rights Reserved.
Abbot is hosted on