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.


Inner classes inherited from class java.lang.ClassLoader
ClassLoader.NativeLibrary
 
Fields inherited from class java.lang.ClassLoader
nocerts
 
Constructor Summary
PathClassLoader(String path, ClassLoader parent)
          Create a class loader that loads classes from the given path.
 
Method Summary
(package private) static File[] convertPathToFiles(String path, String seps)
           
(package private) static File[] convertPathToFiles(String path, String seps, boolean fixDrives)
           
 String getClassPath()
           
(package private) static URL[] getURLs(String p, String separators)
           
 Class loadClass(String name, boolean resolve)
           
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
, defineClass
 
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
 

Constructor Detail

PathClassLoader

public PathClassLoader(String path,
                       ClassLoader parent)
Create a class loader that loads classes from the given path.
Method Detail

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

SourceForge