forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle providers of optional services in ubermodule classloader (elas…
…tic#91217) * When scanning a jar bundle for services to add to the ubermodule descriptor, we must make sure that any optional dependencies match up to services that are defined in the code. If we naively declare that our module uses any service that is implemented by one of its jars, we might fail to load the plugin because the original implementation is not included in our bundle. Here we add a fairly detailed test scenario for required and optional services defined outside the bundle, as well as for services defined within the bundle, either by module declaration or by META-INF/services entry.
- Loading branch information
1 parent
143828e
commit e144722
Showing
3 changed files
with
408 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.