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 Details

    • isEnabled

      boolean isEnabled()
      Returns:
      true if one implementation of file system monitoring is enabled.
    • addFileListener

      boolean addFileListener(File root, FileEventListener listener)
      Register a FileEventListener to receive notifications when resources are updated.
      Parameters:
      root - the root for the listener
      listener - the listener to add
      Returns:
      true when adding listener was successful
    • removeFileListener

      void removeFileListener(FileEventListener listener)
      Unregister a FileEventListener.
      Parameters:
      listener - the listener to remove