edu.umd.cs.findbugs

Class PluginLoader

public class PluginLoader extends URLClassLoader

Loader for a FindBugs plugin. A plugin is a jar file containing two metadata files, "findbugs.xml" and "messages.xml". Those files specify

The PluginLoader creates a Plugin object to store the Detector factories and metadata.

Author: David Hovemeyer

See Also: Plugin PluginException

Constructor Summary
PluginLoader(URL url)
Constructor.
PluginLoader(URL url, ClassLoader parent)
Constructor.
Method Summary
PlugingetPlugin()
Get the Plugin.

Constructor Detail

PluginLoader

public PluginLoader(URL url)
Constructor.

Parameters: url the URL of the plugin Jar file

Throws: PluginException if the plugin cannot be fully loaded

PluginLoader

public PluginLoader(URL url, ClassLoader parent)
Constructor.

Parameters: url the URL of the plugin Jar file parent the parent classloader

Method Detail

getPlugin

public Plugin getPlugin()
Get the Plugin.

Throws: PluginException if the plugin cannot be fully loaded

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.