Class AutoRefresher

java.lang.Object
org.fulib.fx.controller.AutoRefresher

@Singleton public class AutoRefresher extends Object
Class used for automatically reloading controllers when their corresponding FXML file changes.
  • Constructor Details

    • AutoRefresher

      @Inject public AutoRefresher()
  • Method Details

    • setup

      public void setup(Path directory)
      Registers the auto refresher for the given directory.
      Parameters:
      directory - The directory to check for updates
      Throws:
      RuntimeException - If the given path is not a directory
    • close

      public void close()