Package edu.umd.cs.findbugs.plan
Class ByInterfaceDetectorFactorySelector
- java.lang.Object
-
- edu.umd.cs.findbugs.plan.ByInterfaceDetectorFactorySelector
-
- All Implemented Interfaces:
DetectorFactorySelector
public class ByInterfaceDetectorFactorySelector extends java.lang.Object implements DetectorFactorySelector
DetectorFactorySelector implementation that chooses detectors based on an implemented interface or extended superclass.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>
detectorInterface
private Plugin
plugin
-
Constructor Summary
Constructors Constructor Description ByInterfaceDetectorFactorySelector(Plugin plugin, java.lang.Class<?> detectorInterface)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
selectFactory(DetectorFactory factory)
Is given DetectorFactory selected (as part of an ordering constraint)?
-
-
-
Field Detail
-
plugin
private final Plugin plugin
-
detectorInterface
private final java.lang.Class<?> detectorInterface
-
-
Constructor Detail
-
ByInterfaceDetectorFactorySelector
public ByInterfaceDetectorFactorySelector(Plugin plugin, java.lang.Class<?> detectorInterface)
-
-
Method Detail
-
selectFactory
public boolean selectFactory(DetectorFactory factory)
Description copied from interface:DetectorFactorySelector
Is given DetectorFactory selected (as part of an ordering constraint)?- Specified by:
selectFactory
in interfaceDetectorFactorySelector
- Parameters:
factory
- a DetectorFactory- Returns:
- true if the factory is selected, false otherwise
-
-