App

core. App

The main application class

Constructor

new App()

Source:

Extends

  • AbstractModule

Members

(static) instance :App

Source:
The singleton instance. Self-initialises it if there isn't one.
Type:
  • App

app :App

Source:
Instance of App instance (required by all AbstractModules)
Type:
  • App

args :Object

Source:
Reference to the passed arguments (parsed for easy reference)
Type:
  • Object

dependencies :Object

Source:
The Adapt module dependencies and their configs
Type:
  • Object

dependencyloader :DependencyLoader

Source:
Reference to the DependencyLoader instance
Type:
  • DependencyLoader

Methods

(async) init()

Source:

setReady()

Source:

(async) start() → {Promise}

Source:
Starts the app
Returns:
Resolves when the app has started
Type
Promise

(async) waitForModule(…modNames) → {Promise}

Source:
Enables waiting for other modules to load
Parameters:
Name Type Attributes Description
modNames String <repeatable>
Names of modules to wait for
Returns:
Resolves when specified module has been loaded
Type
Promise