Class LPVSScanServiceFactory

java.lang.Object
com.lpvs.service.scan.LPVSScanServiceFactory

@Service public class LPVSScanServiceFactory extends Object
Factory class for creating instances of LPVSScanService.
  • Constructor Details

    • LPVSScanServiceFactory

      public LPVSScanServiceFactory()
  • Method Details

    • createScanService

      public LPVSScanService createScanService(String scannerType, boolean isInternal)
      Creates a scan service based on the specified scanner type and configuration.
      Parameters:
      scannerType - The type of scanner to create.
      isInternal - Flag indicating whether the scanner is internal or not.
      Returns:
      An instance of LPVSScanService corresponding to the specified scanner type.
      Throws:
      IllegalArgumentException - if the specified scanner type is not supported or if an error occurs during the creation process.
    • getServiceClassName

      protected String getServiceClassName(String scannerType, boolean isInternal)
      Gets the fully qualified class name of the scan service based on the specified scanner type and configuration.
      Parameters:
      scannerType - The type of scanner.
      isInternal - Flag indicating whether the scanner is internal or not.
      Returns:
      The fully qualified class name of the scan service.
      Throws:
      IllegalArgumentException - if the specified scanner type is null or empty string.