public class InstalledFileProcessor extends MarkAsProcessedProcessor
Modifier and Type | Field and Description |
---|---|
private ProcessResults |
results |
Constructor and Description |
---|
InstalledFileProcessor(ProcessResults results) |
Modifier and Type | Method and Description |
---|---|
void |
processFile(ExtensionsManager manager,
ExtensionsFile.WriteableExtensionsFile wFile)
Called by the extensions manager for each extensions file that it
manages.
|
begin, done, done, getNumFiles
private final ProcessResults results
public InstalledFileProcessor(ProcessResults results)
public void processFile(ExtensionsManager manager, ExtensionsFile.WriteableExtensionsFile wFile)
ExtensionsFileProcessor
If the processor throws an exception the manager will abort
processing and call ExtensionsFileProcessor.done(ExtensionsManager, Throwable)
.
Error that are related to a specific file should be catched
by the processor and registered by calling .......
If all files was processed without exceptions the manager
will call ExtensionsFileProcessor.done(ExtensionsManager)
.
Note that the file is read-only to begin with. If the processor
wants to call any write-operation the file must be opened by
calling ExtensionsFile.WriteableExtensionsFile.open()
. It is recommended
that the processor calls ExtensionsFile.WriteableExtensionsFile.close()
once it is done writing.
processFile
in interface ExtensionsFileProcessor
processFile
in class MarkAsProcessedProcessor
manager
- The manager that is executing the actionwFile
- The file to be processed