Interface CopilotCommand

All Known Implementing Classes:
AccessibilityCheckerMessageHandler, AICommandHandler, AnalyticsInterceptor, ApplicationInitializer, DevSetupHandler, DocsHandler, ErrorHandler, FeedbackHandler, GenerateTestsHandler, HotswapDownloadHandler, I18nHandler, IdeHandler, IdePluginCommandHandler, InfoHandler, JavaParserHandler, JavaRewriteHandler, MachineConfigurationHandler, OpenComponentInIDE, PreviewHandler, ProjectFileHandler, RouteHandler, ThemeEditorMessageHandler, UiServiceHandler, UserInfoHandler

public interface CopilotCommand
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Checks if given command can be handled asynchronously.
    default void
    handleConnect(com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
     
    boolean
    handleMessage(String command, elemental.json.JsonObject data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
     
  • Field Details

  • Method Details

    • handleMessage

      boolean handleMessage(String command, elemental.json.JsonObject data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
    • handleConnect

      default void handleConnect(com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
    • canBeParallelCommand

      default boolean canBeParallelCommand(String command)
      Checks if given command can be handled asynchronously. If the handler can't be asynchronous at all, it can return false always. But if you want to handle one or more commands asynchronously, you should specify the exact command to prevent handling commands that are not part of the handler as asynchronous.
      Parameters:
      command -
      Returns:
      true if the command can be handled by this command handler