Package com.vaadin.copilot
Class Copilot
java.lang.Object
com.vaadin.copilot.Copilot
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleConnect(com.vaadin.base.devserver.DevToolsInterface devToolsInterface) booleanhandleMessage(String command, elemental.json.JsonObject data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface) static booleanCheck if copilot is running in development mode i.e.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.base.devserver.DevToolsMessageHandler
handleDisconnect
-
Field Details
-
PREFIX
- See Also:
-
ISSUE_TRACKER
- See Also:
-
-
Constructor Details
-
Copilot
public Copilot()
-
-
Method Details
-
handleConnect
public void handleConnect(com.vaadin.base.devserver.DevToolsInterface devToolsInterface) - Specified by:
handleConnectin interfacecom.vaadin.base.devserver.DevToolsMessageHandler
-
handleMessage
public boolean handleMessage(String command, elemental.json.JsonObject data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface) - Specified by:
handleMessagein interfacecom.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
-