<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote" style=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><div dir="auto"><br></div><div dir="auto"><div dir="auto">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. </div></div></div></div></blockquote><div><br></div><div> Here's how I envision it. In Jar Y, we'd have two modules. </div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><div class="gmail_quote"><div><br> module y {</div><br></div> exports y.pkgs;</div><br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><div class="gmail_quote">}</div></div></div></blockquote></div></div><div class="gmail_quote"><br></div><div class="gmail_quote">and in the second module, we would have the SPI impl class</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><div dir="auto"><div dir="auto"><br></div></div></div><div dir="auto"><div class="gmail_quote"><div> module y.inject {</div>  requires static x;</div>  provides x.plugin with y.inject.PluginImpl;</div><br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><div class="gmail_quote">}</div></div></div></blockquote><div><br></div><div>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.</div></div><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"></div><div dir="auto">Instead of a second module my gut says that what would solve this is a: <br></div><div dir="auto"> 'provides static'</div></div></blockquote><div><br></div><div>I'd like this too, but I don't think it's gonna happen.</div></div><input name="virtru-metadata" type="hidden" value="{"email-policy":{"disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"expandedWatermarking":false,"expires":false,"sms":false,"expirationNum":1,"expirationUnit":"days","isManaged":false,"persistentProtection":false},"attachments":{},"compose-id":"3","compose-window":{"secure":false}}"></div>