net.sourceforge.pmd.util
Class ClasspathClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by net.sourceforge.pmd.util.ClasspathClassLoader

public class ClasspathClassLoader
extends java.net.URLClassLoader

Create a ClassLoader which loads classes using a CLASSPATH like String. If the String looks like a URL to a file (e.g. starts with file://) the file will be read with each line representing an path on the classpath.

Author:
Edwin Chan

Constructor Summary
ClasspathClassLoader(java.lang.String classpath, java.lang.ClassLoader parent)
           
 
Method Summary
 
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.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, 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

ClasspathClassLoader

public ClasspathClassLoader(java.lang.String classpath,
                            java.lang.ClassLoader parent)
                     throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002-2011 InfoEther. All Rights Reserved.