public class ClassLoaderPlus extends URLClassLoader
Modifier and Type | Class and Description |
---|---|
static class |
ClassLoaderPlus.FatJarFileComparator
Comparator to ensure that problematic fat JARs are sorted last.
|
Modifier and Type | Field and Description |
---|---|
protected static Method |
addURL |
protected static Set<ClassLoader> |
frozen |
protected static Map<URLClassLoader,List<URL>> |
urlsMap |
Constructor and Description |
---|
ClassLoaderPlus() |
ClassLoaderPlus(URL... urls) |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
protected static Set<ClassLoader> frozen
protected static Map<URLClassLoader,List<URL>> urlsMap
protected static Method addURL
public ClassLoaderPlus()
public ClassLoaderPlus(URL... urls)
public static URLClassLoader getInImageJDirectory(URLClassLoader classLoader, String... relativePaths)
public static URLClassLoader get(URLClassLoader classLoader, File... files)
public static URLClassLoader get(URLClassLoader classLoader, URL... urls)
public static URLClassLoader getRecursivelyInImageJDirectory(URLClassLoader classLoader, String... relativePaths)
public static URLClassLoader getRecursivelyInImageJDirectory(URLClassLoader classLoader, boolean onlyJars, String... relativePaths)
public static URLClassLoader getRecursively(URLClassLoader classLoader, File directory)
public static URLClassLoader getRecursively(URLClassLoader classLoader, boolean onlyJars, File directory)
public static void addInImageJDirectory(URLClassLoader classLoader, String relativePath)
public static void add(URLClassLoader classLoader, String path) throws MalformedURLException
MalformedURLException
public static void add(URLClassLoader classLoader, File file) throws MalformedURLException
MalformedURLException
public static void add(URLClassLoader classLoader, URL url)
public static void freeze(ClassLoader classLoader)
public static String getClassPath(ClassLoader classLoader)
public static String getImageJDir() throws ClassNotFoundException
ClassNotFoundException
public static String getJarPath(ClassLoader classLoader, String className)
Copyright © 2014–2022 ImageJ. All rights reserved.