mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 15:47:23 -04:00
Add settings registration for Java modules through SPI (#98857)
Currently plugins register settings through Plugin.getSettings. For easier breakdown of the codebase, it would be nice to allow arbitrary Java modules to register settings. This commit adds an internal SettingsExtension SPI which acts just like Plugin.getSettings but from a purely static context.
This commit is contained in:
parent
8bce88c19b
commit
47c1d99ae0
3 changed files with 41 additions and 1 deletions
|
@ -371,7 +371,11 @@ module org.elasticsearch.server {
|
|||
|
||||
exports org.elasticsearch.action.datastreams.lifecycle;
|
||||
exports org.elasticsearch.action.downsample;
|
||||
exports org.elasticsearch.plugins.internal to org.elasticsearch.metering, org.elasticsearch.settings.secure;
|
||||
exports org.elasticsearch.plugins.internal
|
||||
to
|
||||
org.elasticsearch.metering,
|
||||
org.elasticsearch.settings.secure,
|
||||
org.elasticsearch.serverless.constants;
|
||||
|
||||
provides java.util.spi.CalendarDataProvider with org.elasticsearch.common.time.IsoCalendarDataProvider;
|
||||
provides org.elasticsearch.xcontent.ErrorOnUnknown with org.elasticsearch.common.xcontent.SuggestingErrorOnUnknown;
|
||||
|
@ -386,6 +390,7 @@ module org.elasticsearch.server {
|
|||
uses org.elasticsearch.node.internal.TerminationHandlerProvider;
|
||||
uses org.elasticsearch.internal.VersionExtension;
|
||||
uses org.elasticsearch.internal.BuildExtension;
|
||||
uses org.elasticsearch.plugins.internal.SettingsExtension;
|
||||
|
||||
provides org.apache.lucene.codecs.PostingsFormat
|
||||
with
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue