Class Daemon

java.lang.Object
com.vaadin.flow.devloop.daemon.Daemon

public final class Daemon extends Object
The dev-loop daemon: one per application module, discovered through .vaadin/daemon.properties, never started by hand.

One application, which is not the same as one module: when the application sits in a Maven reactor, every reactor module it depends on is in the same edit loop. The application module is still the only tree the daemon owns ? the handshake, the logs and the caches all live under it.

P1 scope is lifecycle only - status, start, stop, restart, shutdown. The transaction verbs come in P2/P3, which is why the wire protocol already streams progress lines before a final exit code: apply will need exactly that shape.

For internal use only. May be renamed or removed in a future release.

  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Starts the daemon for a project.
      Parameters:
      args - the project root directory as the first argument; the current working directory is used when no argument is given
      Throws:
      Exception - if the daemon cannot be started