JPF 1.5.1

org.java.plugin
Class PluginClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by 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$

Constructor Summary
protected PluginClassLoader(PluginManager aManager, PluginDescriptor descr, java.net.URL[] urls)
           
protected PluginClassLoader(PluginManager aManager, PluginDescriptor descr, java.net.URL[] urls, java.lang.ClassLoader parent)
           
protected PluginClassLoader(PluginManager aManager, PluginDescriptor descr, java.net.URL[] urls, java.lang.ClassLoader parent, java.net.URLStreamHandlerFactory factory)
           
 
Method Summary
protected abstract  void dispose()
          Should release all resources acquired by this class loader instance.
 PluginDescriptor getPluginDescriptor()
           
 PluginManager getPluginManager()
           
protected abstract  void pluginsSetChanged()
          Registry data change notification.
 java.lang.String toString()
           
 
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
 

Constructor Detail

PluginClassLoader

protected PluginClassLoader(PluginManager aManager,
                            PluginDescriptor descr,
                            java.net.URL[] urls,
                            java.lang.ClassLoader parent,
                            java.net.URLStreamHandlerFactory factory)
Parameters:
aManager - plug-in manager
descr - plug-in descriptor
urls - resources "managed" by this class loader
parent - parent class loader
factory - 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 manager
descr - plug-in descriptor
urls - resources "managed" by this class loader
parent - 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 manager
descr - plug-in descriptor
urls - resources "managed" by this class loader
See Also:
URLClassLoader.URLClassLoader(java.net.URL[])
Method Detail

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()

JPF 1.5.1

Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.