Package com.vaadin.copilot
Class ApplicationInitializer
java.lang.Object
com.vaadin.copilot.CopilotCommand
com.vaadin.copilot.ApplicationInitializer
Helps to initialize a Spring Boot Vaadin application with no views by adding
either a Flow or Hilla view + a theme.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.vaadin.copilot.CopilotCommand
currentSession, KEY_CANCEL_REQ_ID, KEY_REQ_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleMessage(String command, com.fasterxml.jackson.databind.JsonNode data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface) Called whenever there is a message from the browser.Methods inherited from class com.vaadin.copilot.CopilotCommand
canBeParallelCommand, getProjectFileManager, getVaadinContext, getVaadinSession, handleConnect
-
Field Details
-
SUCCESS_KEY
- See Also:
-
REASON_KEY
- See Also:
-
INIT_APP_RESULT
- See Also:
-
REFRESH_KEY
- See Also:
-
-
Constructor Details
-
ApplicationInitializer
public ApplicationInitializer()
-
-
Method Details
-
handleMessage
public boolean handleMessage(String command, com.fasterxml.jackson.databind.JsonNode data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface) Description copied from class:CopilotCommandCalled whenever there is a message from the browser. Implementations should check if the command is for them, handle it and return true if the command was handled.- Specified by:
handleMessagein classCopilotCommand- Parameters:
command- the command to handledata- the data for the commanddevToolsInterface- the devtools interface for the connection- Returns:
- true if the command was handled, false otherwise
-