ComponentDirector

ComponentDirector

The ComponentDirector manages the ComponentManager. It controls the lifecycle of components via the scm-config.json. It is primarily used through the commandline via the scm command.

Constructor

new ComponentDirector()

Source:

Methods

(async, static) start(opts) → {Promise.<ComponentDirector>}

Source:

Allocates a new ComponentDirector and starts all the components.

Parameters:
Name Type Description
opts Object

Options for the component director.

Returns:

A Promise that resolves to the new ComponentDirector when complete, or rejects on error.

Type
Promise.<ComponentDirector>

start(opts) → {Promise.<ComponentDirector>}

Source:

A wrapper for ComponentDirector#start

Parameters:
Name Type Description
opts Object

Options

Returns:

A Promise that resolves to ComponentDirector on success, or rejects with an Error on failure.

Type
Promise.<ComponentDirector>