Package io.jmix.flowui.devserver
Class ThemeLiveUpdater
java.lang.Object
io.jmix.flowui.devserver.ThemeLiveUpdater
- All Implemented Interfaces:
Closeable
,AutoCloseable
Watches the given theme folder for changes, combines the theme on changes and
pushes the new version to the browser.
-
Constructor Summary
ConstructorDescriptionThemeLiveUpdater
(File themeFolder, com.vaadin.flow.server.VaadinContext context) Starts watching the given theme folder (containing styles.css). -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Stops watching the folder and cleans up resources.
-
Constructor Details
-
ThemeLiveUpdater
Starts watching the given theme folder (containing styles.css).- Parameters:
themeFolder
- the folder to watchcontext
- the current context
-
-
Method Details
-
close
Stops watching the folder and cleans up resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-