Class 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 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 interface DetectorFactorySelector
        Parameters:
        factory - a DetectorFactory
        Returns:
        true if the factory is selected, false otherwise