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.
    Author:
    David Hovemeyer
    • 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)?
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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