public class StandardPluginClassLoader extends PluginClassLoader
| Modifier and Type | Class and Description |
|---|---|
protected static class |
StandardPluginClassLoader.ResourceFilter |
| Constructor and Description |
|---|
StandardPluginClassLoader(PluginManager aManager,
PluginDescriptor descr,
ClassLoader parent)
Creates class instance configured to load classes and resources for given
plug-in.
|
| Modifier and Type | Method and Description |
|---|---|
protected File |
cacheLibrary(URL libUrl,
String libname) |
protected void |
checkClassVisibility(Class<?> cls,
StandardPluginClassLoader requestor) |
protected void |
collectFilters() |
protected void |
collectImports() |
protected void |
dispose()
Should release all resources acquired by this class loader instance.
|
protected String |
findLibrary(String name) |
URL |
findResource(String name) |
protected URL |
findResource(String name,
StandardPluginClassLoader requestor,
Set<String> seenPlugins) |
protected void |
findResources(List<URL> result,
String name,
StandardPluginClassLoader requestor,
Set<String> seenPlugins) |
Enumeration<URL> |
findResources(String name) |
protected boolean |
isResourceVisible(String name,
URL url,
StandardPluginClassLoader requestor) |
protected Class<?> |
loadClass(String name,
boolean resolve) |
protected void |
pluginsSetChanged()
Registry data change notification.
|
protected void |
setForeignClassLoadingOptimization(boolean value) |
protected void |
setLocalClassLoadingOptimization(boolean value) |
protected void |
setProbeParentLoaderLast(boolean value) |
protected void |
setStickySynchronizing(boolean value) |
getPluginDescriptor, getPluginManager, toStringaddURL, close, definePackage, findClass, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic StandardPluginClassLoader(PluginManager aManager, PluginDescriptor descr, ClassLoader parent)
aManager - plug-in manager instancedescr - plug-in descriptorparent - parent class loader, usually this is JPF "host" application
class loaderprotected void collectImports()
protected void collectFilters()
protected void pluginsSetChanged()
PluginClassLoaderpluginsSetChanged in class PluginClassLoaderPluginClassLoader.pluginsSetChanged()protected void dispose()
PluginClassLoaderdispose in class PluginClassLoaderPluginClassLoader.dispose()protected void setProbeParentLoaderLast(boolean value)
protected void setStickySynchronizing(boolean value)
protected void setLocalClassLoadingOptimization(boolean value)
protected void setForeignClassLoadingOptimization(boolean value)
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionClassLoader.loadClass(java.lang.String, boolean)protected void checkClassVisibility(Class<?> cls, StandardPluginClassLoader requestor) throws ClassNotFoundException
ClassNotFoundExceptionprotected String findLibrary(String name)
findLibrary in class ClassLoaderClassLoader.findLibrary(java.lang.String)public URL findResource(String name)
findResource in class URLClassLoaderClassLoader.findResource(java.lang.String)public Enumeration<URL> findResources(String name) throws IOException
findResources in class URLClassLoaderIOExceptionClassLoader.findResources(java.lang.String)protected URL findResource(String name, StandardPluginClassLoader requestor, Set<String> seenPlugins)
protected void findResources(List<URL> result, String name, StandardPluginClassLoader requestor, Set<String> seenPlugins) throws IOException
IOExceptionprotected boolean isResourceVisible(String name, URL url, StandardPluginClassLoader requestor)
Copyright © 2016. All rights reserved.