com.googlecode.refit.mojo
Class ClasspathClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by com.googlecode.refit.mojo.ClasspathClassLoader

public class ClasspathClassLoader
extends URLClassLoader

Specialization of URLClassLoader, interpreting a list of Strings as file URLs.

Author:
Mauro Talevi, Harald Wellmann

Constructor Summary
ClasspathClassLoader()
           
ClasspathClassLoader(List<String> classpathElements)
           
ClasspathClassLoader(URL[] urls)
           
ClasspathClassLoader(URL[] urls, ClassLoader parent)
           
 
Method Summary
protected static URL[] toClasspathURLs(List<String> classpathElements)
           
 
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()

ClasspathClassLoader

public ClasspathClassLoader(List<String> classpathElements)
                     throws MalformedURLException
Throws:
MalformedURLException

ClasspathClassLoader

public ClasspathClassLoader(URL[] urls)

ClasspathClassLoader

public ClasspathClassLoader(URL[] urls,
                            ClassLoader parent)
Method Detail

toClasspathURLs

protected static URL[] toClasspathURLs(List<String> classpathElements)
                                throws MalformedURLException
Throws:
MalformedURLException


Copyright © 2011. All Rights Reserved.