Skip to content

Support loading add-on configurations - #930

Draft
SebSparrowHawk wants to merge 2 commits into
eclipse-score:mainfrom
SebSparrowHawk:ssp_merging_addon_configs
Draft

Support loading add-on configurations#930
SebSparrowHawk wants to merge 2 commits into
eclipse-score:mainfrom
SebSparrowHawk:ssp_merging_addon_configs

Conversation

@SebSparrowHawk

Copy link
Copy Markdown
Contributor

Enables users to load add-on mw::com configurations after loading the actual application's configuration.
Only service definitions of these add-on configurations will be considered and merged into the existing configuration if there is no conflict with the already existing configuration.
Restructured the Configuration's internal data structures for service types and service instances so that the use of mutex/locks to protect the configuration can be limited to a minimum.

Comment thread score/mw/com/impl/configuration/configuration.cpp Fixed
Comment thread score/mw/com/impl/configuration/configuration.cpp Fixed
Comment thread score/mw/com/impl/runtime.cpp Fixed
Comment thread score/mw/com/impl/runtime.cpp Fixed
Enables users to load additional mw::com configurations. Introduced a new public API to load
these configurations. It is expected that a complete configuration has been loaded before.
Configuration validation got a new boolean parameter, because for add-on configurations, which
only contain service definitions the default validation can not be performed.
In order to avoid use of mutexes for configuration elements read access,
the internal data structures for those have been changed to use a list of maps,
so that atomic loads and storage can be used wherever possible (i.e. mutexes only
protecting write access).
This change is necessary because with the loading of add-on configurations, an already
initialized configuration might be extended.
@SebSparrowHawk
SebSparrowHawk force-pushed the ssp_merging_addon_configs branch from 6a33e64 to 4569701 Compare August 14, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants