FindBugs™ 1.3.4

edu.umd.cs.findbugs
Class PluginLoader

java.lang.Object
  extended by edu.umd.cs.findbugs.PluginLoader

public class PluginLoader
extends java.lang.Object

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(java.net.URL url)
          Constructor.
PluginLoader(java.net.URL url, java.lang.ClassLoader parent)
          Constructor.
 
Method Summary
 java.lang.ClassLoader getClassLoader()
           
 Plugin getPlugin()
          Get the Plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginLoader

public PluginLoader(java.net.URL url)
             throws PluginException
Constructor.

Parameters:
url - the URL of the plugin Jar file
Throws:
PluginException - if the plugin cannot be fully loaded

PluginLoader

public PluginLoader(java.net.URL url,
                    java.lang.ClassLoader parent)
             throws PluginException
Constructor.

Parameters:
url - the URL of the plugin Jar file
parent - the parent classloader
Throws:
PluginException
Method Detail

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns:
Returns the classLoader.

getPlugin

public Plugin getPlugin()
                 throws PluginException
Get the Plugin.

Throws:
PluginException - if the plugin cannot be fully loaded

FindBugs™ 1.3.4

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