Package org.zeroturnaround.javarebel
Class FileEventAdapter
- java.lang.Object
-
- org.zeroturnaround.javarebel.FileEventAdapter
-
- All Implemented Interfaces:
FileEventListener
public class FileEventAdapter extends Object implements FileEventListener
-
-
Constructor Summary
Constructors Constructor Description FileEventAdapter()
-
Method Summary
All Methods Instance Methods Concrete 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
public boolean isRecursive()
Description copied from interface:FileEventListenerIf the paths monitored by this listener should be monitored recursively or not.- Specified by:
isRecursivein interfaceFileEventListener
-
onFileAdd
public void onFileAdd(File file)
Description copied from interface:FileEventListenerCalled when a new file was added.- Specified by:
onFileAddin interfaceFileEventListener- Parameters:
file- resource path.
-
onFileChange
public void onFileChange(File file)
Description copied from interface:FileEventListenerCalled when an existing file was modified.- Specified by:
onFileChangein interfaceFileEventListener- Parameters:
file- resource path.
-
onFileRemove
public void onFileRemove(File file)
Description copied from interface:FileEventListenerCalled when an existing file was removed.- Specified by:
onFileRemovein interfaceFileEventListener- Parameters:
file- resource path.
-
onFileDirty
public void onFileDirty(File file)
Description copied from interface:FileEventListenerCalled when an event was lost or the state might be dirty.- Specified by:
onFileDirtyin interfaceFileEventListener- Parameters:
file- resource path from event or mostly null.
-
onFailure
public void onFailure()
Description copied from interface:FileEventListenerCalled when monitoring has failed, after this listener may stop receiving events.- Specified by:
onFailurein interfaceFileEventListener
-
-