You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.copilot.javarewriter.

Class SourceSyncChecker

java.lang.Object
com.vaadin.copilot.javarewriter.SourceSyncChecker
public class SourceSyncChecker extends Object

Watches target and source files to detect compilation required cases.

  • Constructor Details

    • SourceSyncChecker

      public SourceSyncChecker(ProjectManager projectManager, DevModeHandlerManager devModeHandler)

      Starts the source file watcher with the given application configuration.

      Parameters:

      projectManager - project manager for getting the application configuration

      devModeHandler - flow dev mode handler for registering file watcher shut down

  • Method Details

    • maybeOutOfSync

      public boolean maybeOutOfSync(ComponentInfoNotFoundException exception)

      Looks for file has been updated since the startup. Additionally, caches exceptions that happens without any files changes.

      Parameters:

      exception - Exception that happens when finding component info fails.

      Returns:

      true if file may be out of sync, false otherwise