App

core. App

The main application class

Constructor

new App()

Source:

Extends

  • AbstractModule

Members

app :App

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

args :Object

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

dependencies :Object

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

dependencyloader :DependencyLoader

Description:
  • Reference to the DependencyLoader instance
Source:
Reference to the DependencyLoader instance
Type:
  • DependencyLoader

(static) instance :App

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

Methods

(async) init()

Source:

setReady()

Source:

(async) start() → {Promise}

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

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

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