public class SquidClassLoader extends ClassLoader implements Closeable
Constructor and Description |
---|
SquidClassLoader(Collection<File> files) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this class loader, so that it can no longer be used to load new classes or resources.
|
protected Class<?> |
findClass(String name) |
URL |
findResource(String name) |
protected Enumeration<URL> |
findResources(String name) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public SquidClassLoader(Collection<File> files) throws IOException
IOException
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class ClassLoader
ClassNotFoundException
public URL findResource(String name)
findResource
in class ClassLoader
protected Enumeration<URL> findResources(String name) throws IOException
findResources
in class ClassLoader
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2009-2012 SonarSource. All Rights Reserved.