[External] : Re: provides and requires static ... runtime error
Josiah Noel
josiahnoel at gmail.com
Sat Apr 22 22:49:22 UTC 2023
>
> How would this solve the issue? I can't see how having a second module on
> the same jar/artifact would work for this case.
>
Here's how I envision it. In Jar Y, we'd have two modules.
> module y {
>
> exports y.pkgs;
>
> }
>
and in the second module, we would have the SPI impl class
>
> module y.inject {
> requires static x;
> provides x.plugin with y.inject.PluginImpl;
>
> }
>
Now say some project adds the X Jar and the Y jar, the modules should
resolve and X should service load the SPI from the y.inject module.
> Instead of a second module my gut says that what would solve this is a:
> 'provides static'
>
I'd like this too, but I don't think it's gonna happen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jigsaw-dev/attachments/20230422/2b7d2115/attachment.htm>
More information about the jigsaw-dev
mailing list