Package com.vaadin.copilot
Class ApplicationInitializer
java.lang.Object
com.vaadin.copilot.ApplicationInitializer
- All Implemented Interfaces:
CopilotCommand
Helps initializing a Spring Boot Vaadin application with no views by adding
either a Flow or Hilla view + a theme.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Fields inherited from interface com.vaadin.copilot.CopilotCommand
KEY_CANCEL_REQ_ID, KEY_REQ_ID
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationInitializer
(ProjectManager projectManager, VaadinServletContext context) Creates a new instance of the initializer -
Method Summary
Modifier and TypeMethodDescriptionboolean
handleMessage
(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.copilot.CopilotCommand
handleConnect
-
Field Details
-
SUCCESS_KEY
- See Also:
-
REASON_KEY
- See Also:
-
INIT_APP_RESULT
- See Also:
-
INIT_APP_ADD_DEVTOOLS_RESULT
- See Also:
-
REFRESH_KEY
- See Also:
-
-
Constructor Details
-
ApplicationInitializer
Creates a new instance of the initializer- Parameters:
projectManager
- the project manager to usecontext
- the context we are running in
-
-
Method Details
-
handleMessage
public boolean handleMessage(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) - Specified by:
handleMessage
in interfaceCopilotCommand
-