Package biz.gabrys.maven.plugin.util.io
Class ScannerFactory
- java.lang.Object
-
- biz.gabrys.maven.plugin.util.io.ScannerFactory
-
public class ScannerFactory extends Object
Responsible for creating new instances of theFileScannerby theScannerPatternFormat.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description ScannerFactory()Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileScannercreate(ScannerPatternFormat patternFormat, Log logger)Creates a new scanner related with the pattern format.
-
-
-
Method Detail
-
create
public FileScanner create(ScannerPatternFormat patternFormat, Log logger)
Creates a new scanner related with the pattern format. Returns an instance of theRegexFileScannerifpatternFormatis equal tonull.- Parameters:
patternFormat- the scanner pattern format.logger- the logger used to log included/excluded files (only in debug mode).- Returns:
- the new scanner.
- Throws:
IllegalArgumentException- if the logger is equal tonull.- Since:
- 1.0
-
-