DependencyManager

DependencyManager

Class representing DependencyManager

Constructor

new DependencyManager()

Source:

Creates instance of DependencyManager

Methods

add(key, dependency) → {DependencyManager}

Source:

add dependency

Parameters:
Name Type Description
key string
dependency function
Returns:
Type
DependencyManager

hasDependencies() → {boolean}

Source:

checks if valid dependencies exists

Returns:
Type
boolean

inject() → {DependencyManager}

Source:

inject dependencies to a given scope and makes it accessible through local properties

Returns:
Type
DependencyManager

isValid(key, dependency) → {boolean}

Source:

checks if dependency is valid

Parameters:
Name Type Description
key
dependency
Returns:
Type
boolean

(async) resolve() → {Promise}

Source:

resolve dependencies

Returns:
Type
Promise