Core API

The kermit core api description

Config


The config class with support for merging multiple hashes recursively and retrieving a nested key by its dot separated string representation.

since 1.2.0

Methods

  • public constructor()
  • public setConfig([Object config, ...]) : Config
  • public mergerConfig(Object config) : Config
  • public get(string key[, * defaultValue]) : *
  • public getHash() : Object
  • private _getConfigType(* value) : string
  • private _mergerConfig(Object dest, Object src) : Object

Service


Methods

ConfigService


Methods

ServiceManager


The service manager class that holds the registry of services.
since 0.1.0

Config
Strict mode of the service manager may be enabled globally by setting the service-manager.strictMode application config to true.

Methods

Application


The kermit application class is a Service, that manages dependent services, their life-cycle and their configuration in the ServiceManager.

extends Service
since 0.3.0

Methods


Application.constructor([ServiceManager serviceManager])

Parameters

  • ServiceManager serviceManager - The service manager instance. (optional)

Description

Create a new application instance.