Classes

Bootstrap

Application bootstrap used to initialize the environment and the application itself.

Constants

PRODUCTION_ENVIRONMENT : string

Environment name value in the production environment.

Bootstrap 

Application bootstrap used to initialize the environment and the application itself.

Kind: global class


new Bootstrap(oc) 

Initializes the bootstrap.

Param Type Description
oc ObjectContainer The application’s object container to use for managing dependencies.

bootstrap._oc : ObjectContainer 

The object container used to manage dependencies.

Kind: instance property of Bootstrap


bootstrap._config : Object.<string, \*> 

Application configuration.

Kind: instance property of Bootstrap


bootstrap.run(config) 

Initializes the application by running the bootstrap sequence. The sequence initializes the components of the application in the following order:

  • application settings
  • constants, service providers and class dependencies configuration
  • services
  • UI components
  • routing

Kind: instance method of Bootstrap

Param Type Description
config Object.<string, \*> The application environment configuration for the current environment.

bootstrap._initSettings() 

Initializes the application settings. The method loads the settings for all environments and then pics the settings for the current environment.

The method also handles using the values in the production environment as default values for configuration items in other environments.

Kind: instance method of Bootstrap


bootstrap._getEnvironmentSetting() ⇒ Object.<string, \*> 

Returns setting for current environment where base values are from production environment and other environments override base values.

Kind: instance method of Bootstrap


bootstrap._bindDependencies() 

Binds the constants, service providers and class dependencies to the object container.

Kind: instance method of Bootstrap


bootstrap._initRoutes() 

Initializes the routes.

Kind: instance method of Bootstrap


bootstrap._initServices() 

Initializes the basic application services.

Kind: instance method of Bootstrap


PRODUCTION_ENVIRONMENT : string 

Environment name value in the production environment.

Kind: global constant