Interface OnFileChangeListener

All Known Implementing Classes:
JythonManager, JythonManager

public interface OnFileChangeListener
Interface definition for a callback to be invoked when a file under watch is changed.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onFileCreate(String filePath)
    Called when a file is created.
    default void
    onFileDelete(String filePath)
    Called when a file is deleted.
    default void
    onFileModify(String filePath)
    Called when a file is modified.
    default void
    Called when the path being watched has been deleted.
  • Method Details

    • onFileCreate

      default void onFileCreate(String filePath)
      Called when a file is created.
      Parameters:
      filePath - Path to file that was created.
    • onFileModify

      default void onFileModify(String filePath)
      Called when a file is modified.
      Parameters:
      filePath - Path to file that was modified.
    • onFileDelete

      default void onFileDelete(String filePath)
      Called when a file is deleted.
      Parameters:
      filePath - Path to file that was removed.
    • onWatchInvalidation

      default void onWatchInvalidation(String filePath)
      Called when the path being watched has been deleted.
      Parameters:
      filePath - Path that was being watched.