Package org.zeroturnaround.javarebel
Interface ResourceIntegration
-
public interface ResourceIntegrationProvides notifications about file creations, modifications and deletions. This API is provisional and may be changed or removed in future versions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddFileListener(File root, FileEventListener listener)Register aFileEventListenerto receive notifications when resources are updated.booleanisEnabled()voidremoveFileListener(FileEventListener listener)Unregister aFileEventListener.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
- Returns:
- true if one implementation of file system monitoring is enabled.
-
addFileListener
boolean addFileListener(File root, FileEventListener listener)
Register aFileEventListenerto receive notifications when resources are updated.- Returns:
- true when adding listener was successful
-
removeFileListener
void removeFileListener(FileEventListener listener)
Unregister aFileEventListener.
-
-