Support loading add-on configurations - #930
Draft
SebSparrowHawk wants to merge 2 commits into
Draft
Conversation
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
force-pushed
the
ssp_merging_addon_configs
branch
from
August 14, 2026 14:45
6a33e64 to
4569701
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.