public class VirusScannerFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_SCANNER_TYPE
Scanner type
|
| Modifier and Type | Method and Description |
|---|---|
VirusScanner |
getScanner()
Returns the configured virus scanner.
|
void |
init(Properties properties)
Init the factory and virus scanner
|
void |
init(String filePath)
Read the property file and calls the
init(Properties Properties) method |
static VirusScannerFactory |
instance() |
public static final String PROP_SCANNER_TYPE
public static VirusScannerFactory instance()
public VirusScanner getScanner() throws InitializeException
InitializeException - if the factory was not successfully initialized and no scanner is availablepublic void init(Properties properties) throws InitializeException
properties - Properties which contains factory and scanner settingInitializeExceptionInitializeException - InitializeExceptionpublic void init(String filePath) throws ClassNotFoundException, InstantiationException, IllegalAccessException, InitializeException, IOException
init(Properties Properties) methodfilePath - The path to the property fileIOException - IOExceptionClassNotFoundException - ClassNotFoundExceptionInstantiationException - InstantiationExceptionIllegalAccessException - IllegalAccessExceptionInitializeException - InitializeExceptionCopyright © 2019 Communote team. All rights reserved.