Package com.lpvs.service.scan
Class LPVSScanServiceFactory
java.lang.Object
com.lpvs.service.scan.LPVSScanServiceFactory
Factory class for creating instances of
LPVSScanService
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateScanService
(String scannerType, boolean isInternal) Creates a scan service based on the specified scanner type and configuration.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.
-
Constructor Details
-
LPVSScanServiceFactory
public LPVSScanServiceFactory()
-
-
Method Details
-
createScanService
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
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.
-