Class VaadinServletStartupRecorder

java.lang.Object
com.vaadin.quarkus.VaadinServletStartupRecorder

public class VaadinServletStartupRecorder extends Object
Initializes the Vaadin servlets of a native image at RUNTIME_INIT.

Quarkus initializes load-on-startup servlets while it deploys the servlet container at STATIC_INIT, which runs while a native image is built. In a native image, the Vaadin servlets are therefore registered without load-on-startup and initialized here instead, so that the Vaadin service and its deployment configuration are created from the runtime configuration.

This class is meant for internal use only.

  • Constructor Details

    • VaadinServletStartupRecorder

      public VaadinServletStartupRecorder()
  • Method Details

    • initServlets

      public void initServlets(io.undertow.servlet.api.DeploymentManager deploymentManager, List<String> servletNames)
      Initializes the given servlets, in the given order.
      Parameters:
      deploymentManager - the manager of the servlet deployment
      servletNames - the names of the servlets to initialize