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.- Author:
- David Hovemeyer
-
-
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 booleanselectFactory(DetectorFactory factory)Is given DetectorFactory selected (as part of an ordering constraint)?
-
-
-
Constructor Detail
-
ByInterfaceDetectorFactorySelector
public ByInterfaceDetectorFactorySelector(Plugin plugin, java.lang.Class<?> detectorInterface)
-
-
Method Detail
-
selectFactory
public boolean selectFactory(DetectorFactory factory)
Description copied from interface:DetectorFactorySelectorIs given DetectorFactory selected (as part of an ordering constraint)?- Specified by:
selectFactoryin interfaceDetectorFactorySelector- Parameters:
factory- a DetectorFactory- Returns:
- true if the factory is selected, false otherwise
-
-