public class PluginLoader
extends java.lang.Object
The PluginLoader creates a Plugin object to store the Detector factories and metadata.
Plugin
,
PluginException
Modifier and Type | Class and Description |
---|---|
static class |
PluginLoader.Summary |
Constructor and Description |
---|
PluginLoader()
Deprecated.
|
PluginLoader(boolean fake,
java.net.URL url)
Deprecated.
|
PluginLoader(java.net.URL url)
Deprecated.
|
PluginLoader(java.net.URL url,
java.lang.ClassLoader parent)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
getClassLoader() |
static PluginLoader |
getCorePluginLoader() |
Plugin |
getPlugin() |
org.dom4j.Document |
getPluginDescriptor() |
static PluginLoader |
getPluginLoader(java.net.URL url,
java.lang.ClassLoader parent,
boolean isInitial,
boolean optional) |
java.net.URL |
getResource(java.lang.String name)
Get a resource using the URLClassLoader classLoader.
|
java.net.URI |
getURI() |
java.net.URL |
getURL() |
boolean |
hasParent() |
boolean |
isCorePlugin() |
static java.net.URL |
loadFromFindBugsEtcDir(java.lang.String name) |
static java.net.URL |
loadFromFindBugsPluginDir(java.lang.String name) |
Plugin |
loadPlugin()
Get the Plugin.
|
java.lang.String |
toString() |
static PluginLoader.Summary |
validate(java.io.File file) |
@Deprecated public PluginLoader(java.net.URL url) throws PluginException
url
- the URL of the plugin Jar filePluginException
- if the plugin cannot be fully loaded@Deprecated public PluginLoader(java.net.URL url, java.lang.ClassLoader parent) throws PluginException
PluginLoader(URL,URI,ClassLoader,boolean,boolean)
insteadurl
- the URL of the plugin Jar fileparent
- the parent classloaderPluginException
@Deprecated public PluginLoader() throws PluginException
PluginException
@Deprecated public PluginLoader(boolean fake, java.net.URL url) throws PluginException
PluginException
public boolean hasParent()
public java.net.URL getURL()
public java.net.URI getURI()
public java.lang.ClassLoader getClassLoader()
public Plugin loadPlugin() throws PluginException
PluginException
- if the plugin cannot be fully loadedpublic Plugin getPlugin()
public java.net.URL getResource(java.lang.String name)
name
- resource to get@CheckForNull public static java.net.URL loadFromFindBugsEtcDir(java.lang.String name)
@CheckForNull public static java.net.URL loadFromFindBugsPluginDir(java.lang.String name)
public org.dom4j.Document getPluginDescriptor() throws PluginException, PluginDoesntContainMetadataException
public static PluginLoader getPluginLoader(java.net.URL url, java.lang.ClassLoader parent, boolean isInitial, boolean optional) throws PluginException
PluginException
@Nonnull public static PluginLoader getCorePluginLoader()
public boolean isCorePlugin()
public java.lang.String toString()
toString
in class java.lang.Object
public static PluginLoader.Summary validate(java.io.File file) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.