Package com.vaadin.copilot.javarewriter
Class SourceSyncChecker
java.lang.Object
com.vaadin.copilot.javarewriter.SourceSyncChecker
Watches target and source files to detect compilation required cases.
-
Constructor Summary
ConstructorsConstructorDescriptionSourceSyncChecker
(ProjectManager projectManager, DevModeHandlerManager devModeHandler) Starts the source file watcher with the given application configuration. -
Method Summary
Modifier and TypeMethodDescriptionboolean
maybeOutOfSync
(ComponentInfoNotFoundException exception) Looks for file has been updated since the startup.
-
Constructor Details
-
SourceSyncChecker
Starts the source file watcher with the given application configuration.- Parameters:
projectManager
- project manager for getting the application configurationdevModeHandler
- flow dev mode handler for registering file watcher shut down
-
-
Method Details
-
maybeOutOfSync
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
-