Package org.zeroturnaround.javarebel
Interface FileEventListener
-
- All Known Implementing Classes:
FileEventAdapter,FileNameAwareListener
public interface FileEventListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisRecursive()If the paths monitored by this listener should be monitored recursively or not.voidonFailure()Called when monitoring has failed, after this listener may stop receiving events.voidonFileAdd(File file)Called when a new file was added.voidonFileChange(File file)Called when an existing file was modified.voidonFileDirty(File file)Called when an event was lost or the state might be dirty.voidonFileRemove(File file)Called when an existing file was removed.
-
-
-
Method Detail
-
isRecursive
boolean isRecursive()
If the paths monitored by this listener should be monitored recursively or not.
-
onFileAdd
void onFileAdd(File file)
Called when a new file was added.- Parameters:
file- resource path.
-
onFileChange
void onFileChange(File file)
Called when an existing file was modified.- Parameters:
file- resource path.
-
onFileRemove
void onFileRemove(File file)
Called when an existing file was removed.- Parameters:
file- resource path.
-
onFileDirty
void onFileDirty(File file)
Called when an event was lost or the state might be dirty.- Parameters:
file- resource path from event or mostly null.
-
onFailure
void onFailure()
Called when monitoring has failed, after this listener may stop receiving events.
-
-