Package com.atlassian.plugin.loaders
Class FileListScanner
java.lang.Object
com.atlassian.plugin.loaders.FileListScanner
- All Implemented Interfaces:
Scanner
A scanner that simply scans a given set of input files.
This scanner will always return the units in the order supplied in the constructor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets all deployment units currently being tracked by the scanner.voidremove(DeploymentUnit unit) Remove the specified deployment unit in such a way as it will not be picked up by subsequent scans, even if the system is restarted.voidreset()Reset the scanner.scan()Scan for new deployment units.
-
Constructor Details
-
FileListScanner
-
-
Method Details
-
scan
Description copied from interface:ScannerScan for new deployment units. On the first scan, all deployment units that the scanner can find will be returned. Subsequent scans will only return deployment units that are new since the last scan (or call to reset() or clear()) -
getDeploymentUnits
Description copied from interface:ScannerGets all deployment units currently being tracked by the scanner. This will not trigger a scan, meaning that plugins that have been added since the last scan will not be returned.- Specified by:
getDeploymentUnitsin interfaceScanner- Returns:
- a collection of all deployment units currently being tracked by the scanner.
-
reset
public void reset()Description copied from interface:ScannerReset the scanner. This causes it to forget all state about which plugins have (or haven't) been loaded. -
remove
Description copied from interface:ScannerRemove the specified deployment unit in such a way as it will not be picked up by subsequent scans, even if the system is restarted.
-