new ConfigParser(config)
Creates an instance of ConfigurationParser class.
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
config |
object |
<optional> |
The configuration object to be parsed. |
- Source:
Methods
-
<protected> _parseConfig(config) → {object}
-
Parses configuration object.
Parameters:
Name Type Description configobject Configuration object to be parsed. - Source:
Returns:
The created configuration- Type
- object
-
<protected> _parseModules(modules) → {object}
-
Parses a provided modules configuration.
Parameters:
Name Type Description modulesobject Map of modules to be parsed. - Source:
Returns:
Map of parsed modules.- Type
- object
-
<protected> _registerConditionalModule(module)
-
Registers conditional module to the configuration.
Parameters:
Name Type Description moduleobject Module object - Source:
-
addModule(module)
-
Adds a module to the configuration.
Parameters:
Name Type Description moduleobject The module which should be added to the configuration. Should have the following properties: -
Obligatory properties:
- name (String) The name of the module
- dependencies (Array) The modules from which it depends
- Source:
-
getConditionalModules() → {object}
-
Returns map with all currently registered conditional modules and their triggers.
- Source:
Returns:
Map with all currently registered conditional modules.- Type
- object
-
getConfig() → {object}
-
Returns the current configuration.
- Source:
Returns:
The current configuration.- Type
- object
-
getModules() → {object}
-
Returns map with all currently registered modules.
- Source:
Returns:
Map with all currently registered modules.- Type
- object