Class PublicResourcesLiveUpdater

java.lang.Object
com.vaadin.base.devserver.PublicResourcesLiveUpdater
All Implemented Interfaces:
Closeable, AutoCloseable

public class PublicResourcesLiveUpdater extends Object implements Closeable
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 Details

    • PublicResourcesLiveUpdater

      public PublicResourcesLiveUpdater(List<String> roots, VaadinContext context)
      Starts watching the given list of source folders for CSS changes.
      Parameters:
      roots - the list of source folders to watch; non-existing ones are ignored
      context - the current Vaadin context
  • Method Details