public class FlexibleClassLoader
extends java.net.URLClassLoader
Constructor and Description |
---|
FlexibleClassLoader() |
FlexibleClassLoader(java.lang.ClassLoader parent,
boolean set_parent) |
FlexibleClassLoader(java.net.URL[] urls) |
FlexibleClassLoader(java.net.URL[] urls,
java.lang.ClassLoader parent,
boolean set_parent) |
Modifier and Type | Method and Description |
---|---|
boolean |
addAllFiles(java.lang.String path,
java.lang.String suffix,
boolean recursive,
boolean prepend) |
boolean |
addCL(java.lang.ClassLoader cl) |
void |
append(java.lang.String path) |
boolean |
appendAllFiles(java.lang.String path) |
boolean |
appendAllFilesRecursive(java.lang.String path) |
boolean |
appendAllFilesRecursive(java.lang.String path,
java.lang.String suffix) |
void |
appendURL(java.net.URL url) |
void |
appendURLs(java.net.URL[] urls) |
boolean |
blacklist(java.lang.String regexp) |
java.net.URL |
findResource(java.lang.String name) |
java.util.Enumeration<java.net.URL> |
findResources(java.lang.String name) |
static java.lang.String |
getBase() |
static java.lang.String |
getBase(java.lang.Class clazz) |
static java.lang.String |
getBaseFolder() |
java.lang.String |
getCaller() |
java.net.URL[] |
getURLs() |
boolean |
isBlacklisted(java.lang.String name) |
static boolean |
isURLCL(java.lang.ClassLoader cl) |
java.lang.Class<?> |
loadClass(java.lang.String name) |
void |
prepend(java.lang.String path) |
boolean |
prependAllFiles(java.lang.String path) |
boolean |
prependAllFilesRecursive(java.lang.String path) |
boolean |
prependAllFilesRecursive(java.lang.String path,
java.lang.String suffix) |
void |
prependURL(java.net.URL url) |
void |
prependURLs(java.net.URL[] urls) |
boolean |
remCL(java.lang.ClassLoader cl) |
java.lang.String |
toString() |
boolean |
whitelist(java.lang.String regexp) |
addURL, close, definePackage, findClass, getPermissions, getResourceAsStream, newInstance, newInstance
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public FlexibleClassLoader()
public FlexibleClassLoader(java.net.URL[] urls)
public FlexibleClassLoader(java.lang.ClassLoader parent, boolean set_parent)
public FlexibleClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent, boolean set_parent)
public void prepend(java.lang.String path)
public void prependURL(java.net.URL url)
public void prependURLs(java.net.URL[] urls)
public boolean prependAllFiles(java.lang.String path)
public boolean prependAllFilesRecursive(java.lang.String path)
public boolean prependAllFilesRecursive(java.lang.String path, java.lang.String suffix)
public void append(java.lang.String path)
public void appendURL(java.net.URL url)
public void appendURLs(java.net.URL[] urls)
public boolean appendAllFiles(java.lang.String path)
public boolean appendAllFilesRecursive(java.lang.String path)
public boolean appendAllFilesRecursive(java.lang.String path, java.lang.String suffix)
public boolean addAllFiles(java.lang.String path, java.lang.String suffix, boolean recursive, boolean prepend)
public boolean addCL(java.lang.ClassLoader cl)
public boolean remCL(java.lang.ClassLoader cl)
public boolean isBlacklisted(java.lang.String name)
public boolean blacklist(java.lang.String regexp)
public boolean whitelist(java.lang.String regexp)
public java.lang.Class<?> loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
public java.net.URL findResource(java.lang.String name)
findResource
in class java.net.URLClassLoader
public java.util.Enumeration<java.net.URL> findResources(java.lang.String name) throws java.io.IOException
findResources
in class java.net.URLClassLoader
java.io.IOException
public java.net.URL[] getURLs()
getURLs
in class java.net.URLClassLoader
public java.lang.String toString()
toString
in class java.lang.Object
public static boolean isURLCL(java.lang.ClassLoader cl)
public java.lang.String getCaller()
public static java.lang.String getBase()
public static java.lang.String getBase(java.lang.Class clazz)
public static java.lang.String getBaseFolder()