-
- Type Parameters:
I
- Type of the initiator of changes to the model.
- Enclosing interface:
- DirectoryModel<I,T>
public static interface DirectoryModel.Reporter<I>
API defining few reporting methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
reportCreation(Path baseDir, Path relativePath, I initiator)
Report the creation of a file/directory element.void
reportDeletion(Path baseDir, Path relativePath, I initiator)
Report the removal of a file/directory element.void
reportError(Throwable error)
Report an error.void
reportModification(Path baseDir, Path relativePath, I initiator)
Report the modification of a file/directory element.
-
-
-
Method Detail
-
reportCreation
void reportCreation(Path baseDir, Path relativePath, I initiator)
Report the creation of a file/directory element.- Parameters:
baseDir
- Base directory of the update.relativePath
- Path relative tobaseDir
of the created element.initiator
- The initiator of changes to the model.
-
reportDeletion
void reportDeletion(Path baseDir, Path relativePath, I initiator)
Report the removal of a file/directory element.- Parameters:
baseDir
- Base directory of the update.relativePath
- Path relative tobaseDir
of the deleted element.initiator
- The initiator of changes to the model.
-
reportModification
void reportModification(Path baseDir, Path relativePath, I initiator)
Report the modification of a file/directory element.- Parameters:
baseDir
- Base directory of the update.relativePath
- Path relative tobaseDir
of the modified element.initiator
- The initiator of changes to the model.
-
reportError
void reportError(Throwable error)
Report an error.- Parameters:
error
- The thrown exception.
-
-