SystemState

SystemState

A container for modules. Holds system state. It's a module itself.

Constructor

new SystemState()

Source:

Methods

addModuleClass(classObject, overrideNameopt)

Source:

Add a module to the known classes library.

Parameters:
Name Type Attributes Default Description
classObject

The class

overrideName <optional>
null

Class name override if encountering issues with transpiled solutions.

bootstrap()

Source:

Prepare module instances but don't initialize them.

resolveClass(nameOrClassObject)

Source:

Return the class of a given name. If the argument is already a class then return it.

Parameters:
Name Type Description
nameOrClassObject *

(async) setup()

Source:

Setup bootstrapped modules.

(async) teardown()

Source:

Teardown all modules. Cleans up references. Must call bootstrap to use setup again.