We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.copilot.javarewriter.
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
-