ZEST / base.resolver / Namespace: ConfigurationManager

base-resolver/configurations~ ConfigurationManager

A configurations manager manages the lifecycle of one configuration array for dependency injection in resolver.

Source:

Methods

<static> get(dependencyName) → {*}

This function gets the configuration corresponding to a dependency name

Parameters:
Name Type Description
dependencyName string

the dependency name for which we need the configuration

Source:
See:
Returns:

the configuration object corresponding to the dependnecyName

Type
*

<static> setup(configArray, baseDir) → {external:q}

The setup function configures the ConfigurationManager with an Array of module:base-resolver~Configuration objects.

Parameters:
Name Type Description
configArray Array.<(module:base-resolver~Configuration|string)>

the array of configurations to use

baseDir string

the directory relative to which the component paths should be resolved.

Source:
See:
Returns:

a Promise that gets resolved with this base-resolver/configurations~ConfigurationManager when the setup is complete. This promise is rejected with the error if reload execution fails.

Type
external:q

<static> startupDependencies() → {Array.<string>}

The function lists all startup dependencies for the module.

Source:
See:
Returns:

list of dependency names to be resolved

Type
Array.<string>