org.java.plugin
Class PluginClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.java.plugin.PluginClassLoader
- Direct Known Subclasses:
- StandardPluginClassLoader
public abstract class PluginClassLoader
- extends java.net.URLClassLoader
Extension to Java class loader API. One instance of this class should be
created by plug-in manager
for every
available plug-in.
- Version:
- $Id$
Methods inherited from class java.net.URLClassLoader |
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
defineClass, defineClass |
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PluginClassLoader
protected PluginClassLoader(PluginManager aManager,
PluginDescriptor descr,
java.net.URL[] urls,
java.lang.ClassLoader parent,
java.net.URLStreamHandlerFactory factory)
- Parameters:
aManager
- plug-in managerdescr
- plug-in descriptorurls
- resources "managed" by this class loaderparent
- parent class loaderfactory
- URL stream handler factory- See Also:
URLClassLoader.URLClassLoader(java.net.URL[], java.lang.ClassLoader,
java.net.URLStreamHandlerFactory)
PluginClassLoader
protected PluginClassLoader(PluginManager aManager,
PluginDescriptor descr,
java.net.URL[] urls,
java.lang.ClassLoader parent)
- Parameters:
aManager
- plug-in managerdescr
- plug-in descriptorurls
- resources "managed" by this class loaderparent
- parent class loader- See Also:
URLClassLoader.URLClassLoader(java.net.URL[], java.lang.ClassLoader)
PluginClassLoader
protected PluginClassLoader(PluginManager aManager,
PluginDescriptor descr,
java.net.URL[] urls)
- Parameters:
aManager
- plug-in managerdescr
- plug-in descriptorurls
- resources "managed" by this class loader- See Also:
URLClassLoader.URLClassLoader(java.net.URL[])
getPluginManager
public PluginManager getPluginManager()
- Returns:
- returns the plug-in manager
getPluginDescriptor
public PluginDescriptor getPluginDescriptor()
- Returns:
- returns the plug-in descriptor
dispose
protected abstract void dispose()
- Should release all resources acquired by this class loader instance.
pluginsSetChanged
protected abstract void pluginsSetChanged()
- Registry data change notification.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.