Support easy access to global plugin configuration in own config file
For some plugins the configuration is too complex to be stored in a
single 'plugin' subsection in 'gerrit.config'. If a plugin needs
subsections in its configuration then the plugin configuration can
be stored in an own configuration file next to 'gerrit.config'.
This change adds a method to PluginConfigFactory to easily access the
plugin configuration that is stored in such a plugin configuration
file.
The plugin configuration is loaded only once and is then cached. The
caching is important to avoid loading and parsing the configuration
file on every access, but similar to changes in 'gerrit.config',
changes to the plugin configuration file will only become effective
after a Gerrit restart.
Change-Id: Idbdfd2cf5bd985df3b524b5500e526ecb150cce8
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2 files changed