|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.DetectorFactoryCollection
public class DetectorFactoryCollection
The DetectorFactoryCollection stores all of the DetectorFactory objects used to create the Detectors which implement the various analyses. It is a singleton class.
DetectorFactory
Field Summary | |
---|---|
private java.util.HashMap<java.lang.String,DetectorFactory> |
factoriesByDetectorClassName
|
private java.util.HashMap<java.lang.String,DetectorFactory> |
factoriesByName
|
private java.util.ArrayList<DetectorFactory> |
factoryList
|
private static java.lang.Object |
lock
|
private java.util.HashMap<java.lang.String,Plugin> |
pluginByIdMap
|
private static java.io.File[] |
pluginList
|
private static DetectorFactoryCollection |
theInstance
|
Constructor Summary | |
---|---|
private |
DetectorFactoryCollection()
Constructor. |
Method Summary | |
---|---|
void |
disableAll()
Disable all detectors. |
void |
enableAll()
Enable all detectors. |
private void |
enableAll(boolean enabled)
|
java.util.Iterator<DetectorFactory> |
factoryIterator()
Return an Iterator over the DetectorFactory objects for all registered Detectors. |
DetectorFactory |
getFactory(java.lang.String name)
Look up a DetectorFactory by its short name. |
DetectorFactory |
getFactoryByClassName(java.lang.String className)
Look up a DetectorFactory by its class name. |
Plugin |
getPluginById(java.lang.String pluginId)
Get a Plugin by its unique id. |
static DetectorFactoryCollection |
instance()
Get the single instance of DetectorFactoryCollection. |
private void |
loadPlugins()
Load all plugins. |
java.util.Iterator<Plugin> |
pluginIterator()
Return an Iterator over all available Plugin objects. |
private void |
registerDetector(DetectorFactory factory)
Register a DetectorFactory. |
static void |
setPluginList(java.io.File[] pluginList)
Set the list of plugins to load explicitly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.HashMap<java.lang.String,Plugin> pluginByIdMap
private java.util.ArrayList<DetectorFactory> factoryList
private java.util.HashMap<java.lang.String,DetectorFactory> factoriesByName
private java.util.HashMap<java.lang.String,DetectorFactory> factoriesByDetectorClassName
private static DetectorFactoryCollection theInstance
private static final java.lang.Object lock
private static java.io.File[] pluginList
Constructor Detail |
---|
private DetectorFactoryCollection()
Method Detail |
---|
public static void setPluginList(java.io.File[] pluginList)
pluginList
- list of plugin Jar files to loadpublic static DetectorFactoryCollection instance()
public java.util.Iterator<Plugin> pluginIterator()
public Plugin getPluginById(java.lang.String pluginId)
pluginId
- the unique id
public java.util.Iterator<DetectorFactory> factoryIterator()
public DetectorFactory getFactory(java.lang.String name)
name
- the short name
public DetectorFactory getFactoryByClassName(java.lang.String className)
className
- the class name
public void disableAll()
public void enableAll()
private void enableAll(boolean enabled)
private void registerDetector(DetectorFactory factory)
private void loadPlugins()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |