Context
The local environment for anything being done in DataForge framework. Contexts are organized into tree structure with Global at the top. Context has properties - equivalent for system environment values, but grouped into a tree and inherited from parent context.
The main function of the Context is to provide PluginManager which stores the loaded plugins and works as a dependency injection point. The normal behaviour of the PluginManager is to search for a plugin in parent context if it is not found in a current one. It is possible to have different plugins with the same interface in different contexts in the hierarchy. The usual behaviour is to use nearest one, but it could be overridden by plugin implementation.
Types
Functions
Get and validate existing context or build and register a new child context.
Properties
Extensions
Fetch a plugin with given meta from the context. If the plugin (with given meta) is already registered, it is returned. Otherwise, new child context with the plugin is created. In the later case the context could be retrieved from the plugin.
Gather all content from context itself and its plugins in a form of sequence of name-value pairs. Ignores name conflicts.
Context log manager inherited from parent