Class Copilot

java.lang.Object
com.vaadin.copilot.Copilot
All Implemented Interfaces:
com.vaadin.base.devserver.DevToolsMessageHandler

public class Copilot extends Object implements com.vaadin.base.devserver.DevToolsMessageHandler
This is the entry point for copilot.

It is a singleton with the main purpose to forward messages to the correct CopilotSession instance, based on which session the message is related to.

  • Field Details

  • Constructor Details

    • Copilot

      public Copilot()
  • Method Details

    • handleConnect

      public void handleConnect(com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
      Specified by:
      handleConnect in interface com.vaadin.base.devserver.DevToolsMessageHandler
    • handleMessage

      public boolean handleMessage(String command, com.fasterxml.jackson.databind.JsonNode data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
      Specified by:
      handleMessage in interface com.vaadin.base.devserver.DevToolsMessageHandler
    • isDevelopmentMode

      public static boolean isDevelopmentMode()
      Check if copilot is running in development mode i.e. is being developed.

      Unrelated to Vaadin's production mode.

      Returns:
      true if copilot is running in development mode