Class Bootstrapper

java.lang.Object
com.vaadin.client.bootstrap.Bootstrapper
All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint

public class Bootstrapper extends Object implements com.google.gwt.core.client.EntryPoint
Handles bootstrapping of the application.

Reads the configuration provided by the server in the DOM and starts the client engine (ApplicationConnection).

Acts as the GWT entry point.

Since:
1.0
Author:
Vaadin Ltd
  • Constructor Details

    • Bootstrapper

      public Bootstrapper()
  • Method Details

    • onModuleLoad

      public void onModuleLoad()
      Specified by:
      onModuleLoad in interface com.google.gwt.core.client.EntryPoint
    • startApplication

      public static void startApplication(String applicationId)
      Starts the application with a given id by reading the configuration options stored by the bootstrap javascript.
      Parameters:
      applicationId - id of the application to load, this is also the id of the html element into which the application should be rendered.
    • getRunningApplications

      public static JsArray<ApplicationConnection> getRunningApplications()
      Gets a list of references to all running application instances.
      Returns:
      a list of ApplicationConnections currently active
    • registerCallback

      public static void registerCallback(String widgetsetName)
      Registers the callback that the bootstrap javascript uses to start applications once the widgetset is loaded and all required information is available.
      Parameters:
      widgetsetName - the name of this widgetset