Package com.vaadin.base.devserver
Class PublicResourcesLiveUpdater
java.lang.Object
com.vaadin.base.devserver.PublicResourcesLiveUpdater
- All Implemented Interfaces:
Closeable,AutoCloseable
Watches source public resource folders for CSS changes and pushes updates to
the browser via the debug window connection.
Watched source roots map to public static resources in the running application, such as:
- src/main/resources/META-INF/resources
- src/main/resources/resources
- src/main/resources/static
- src/main/resources/public
- src/main/webapp
For internal use only. May be renamed or removed in a future release.
-
Constructor Summary
ConstructorsConstructorDescriptionPublicResourcesLiveUpdater(List<String> roots, com.vaadin.flow.server.VaadinContext context) Starts watching the given list of source folders for CSS changes. -
Method Summary
-
Constructor Details
-
PublicResourcesLiveUpdater
Starts watching the given list of source folders for CSS changes.- Parameters:
roots- the list of source folders to watch; non-existing ones are ignoredcontext- the current Vaadin context
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-