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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final com.github.javaparser.ParserConfiguration.LanguageLevelstatic final Stringstatic final Supplier<IllegalStateException> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleConnect(com.vaadin.base.devserver.DevToolsInterface devToolsInterface) booleanhandleMessage(String command, com.fasterxml.jackson.databind.JsonNode data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface) static booleanCheck if copilot is running in development mode i.e. is being developed.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:
-
LANGUAGE_LEVEL
public static final com.github.javaparser.ParserConfiguration.LanguageLevel LANGUAGE_LEVEL -
ISSUE_TRACKER
- See Also:
-
sourceNotFound
-
-
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, com.fasterxml.jackson.databind.JsonNode 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
-