public class PluginClassLoader extends URLClassLoader
Constructor and Description |
---|
PluginClassLoader(ClassLoader parent,
List<URL> urls)
Creates a new instance.
|
PluginClassLoader(ClassLoader parent,
URL... urls)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
loadDirect(Class<?> aClass)
Directly load the class using this class loader.
|
static PluginClassLoader |
newInstance(ClassLoader parent,
List<URL> urls)
Creates a new instance within current context.
|
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
public PluginClassLoader(ClassLoader parent, URL... urls)
parent
- the parent class loaderurls
- the plug-in URLspublic PluginClassLoader(ClassLoader parent, List<URL> urls)
parent
- the parent class loaderurls
- the plug-in URLspublic static PluginClassLoader newInstance(ClassLoader parent, List<URL> urls)
parent
- the parent class loaderurls
- the plug-in URLspublic Class<?> loadDirect(Class<?> aClass) throws IOException
aClass
- the target classIOException
- if failed to load the class by I/O errorCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.