edu.umd.cs.findbugs

Class DetectorFactoryCollection

public class DetectorFactoryCollection extends Object

The DetectorFactoryCollection stores all of the DetectorFactory objects used to create the Detectors which implement the various analyses. It is a singleton class.

Author: David Hovemeyer

See Also: DetectorFactory

Method Summary
voidensureLoaded()
Iterator<DetectorFactory>factoryIterator()
Return an Iterator over the DetectorFactory objects for all registered Detectors.
DetectorFactorygetFactory(String name)
Look up a DetectorFactory by its short name.
DetectorFactorygetFactoryByClassName(String className)
Look up a DetectorFactory by its class name.
PlugingetPluginById(String pluginId)
Get a Plugin by its unique id.
static DetectorFactoryCollectioninstance()
Get the single instance of DetectorFactoryCollection.
Iterator<Plugin>pluginIterator()
Return an Iterator over all available Plugin objects.
static DetectorFactoryCollectionrawInstance()
Get the single instance of DetectorFactoryCollection.
voidsetPluginList(URL[] pluginList)
Set the list of plugins to load explicitly.

Method Detail

ensureLoaded

public void ensureLoaded()

factoryIterator

public Iterator<DetectorFactory> factoryIterator()
Return an Iterator over the DetectorFactory objects for all registered Detectors.

getFactory

public DetectorFactory getFactory(String name)
Look up a DetectorFactory by its short name.

Parameters: name the short name

Returns: the DetectorFactory, or null if there is no factory with that short name

getFactoryByClassName

public DetectorFactory getFactoryByClassName(String className)
Look up a DetectorFactory by its class name.

Parameters: className the class name

Returns: the DetectoryFactory, or null if there is no factory with that class name

getPluginById

public Plugin getPluginById(String pluginId)
Get a Plugin by its unique id.

Parameters: pluginId the unique id

Returns: the Plugin with that id, or null if no such Plugin is found

instance

public static DetectorFactoryCollection instance()
Get the single instance of DetectorFactoryCollection.

pluginIterator

public Iterator<Plugin> pluginIterator()
Return an Iterator over all available Plugin objects.

rawInstance

public static DetectorFactoryCollection rawInstance()
Get the single instance of DetectorFactoryCollection.

setPluginList

public void setPluginList(URL[] pluginList)
Set the list of plugins to load explicitly. This must be done before the instance of DetectorFactoryCollection is created.

Parameters: pluginList list of plugin Jar files to load

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