Module

Module

A base class for any module.

Constructor

new Module()

Source:

Methods

moduleIsExclusive()

Source:

Return whether this module is exclusive.

modulePerformInjection(requestFn)

Source:

Inject objects into this module.

Parameters:
Name Type Description
requestFn *

moduleWasSetUp()

Source:

Return whether this module was set up.

postSetup()

Source:

Called after all modules are set up. Useful with some use cases. Async methods are supported.

setup()

Source:

Setup this module. Called after all dependencies are set up. Optional dependencies are not guaranteed to be set up. Async methods are supported. As a library user you should define your own setup method and call super.setup() (no await needed).

teardown()

Source:

Teardown this module. Called when everything should be closed and cleaned up. Starts from the most dependent modules. Async teardown is supported. As a library user you should define your own teardown method and call super.teardown() (no await needed)