Package org.zeroturnaround.javarebel
Interface ResourceIntegration
public interface ResourceIntegration
Provides notifications about file creations, modifications and deletions.
This API is provisional and may be changed or removed in future versions.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddFileListener(File root, FileEventListener listener) Register aFileEventListenerto receive notifications when resources are updated.booleanvoidremoveFileListener(FileEventListener listener) Unregister aFileEventListener.
-
Method Details
-
isEnabled
boolean isEnabled()- Returns:
- true if one implementation of file system monitoring is enabled.
-
addFileListener
Register aFileEventListenerto receive notifications when resources are updated.- Parameters:
root- the root for the listenerlistener- the listener to add- Returns:
- true when adding listener was successful
-
removeFileListener
Unregister aFileEventListener.- Parameters:
listener- the listener to remove
-