>
> Does this work without *any* module having a `requires y.inject`?
>

Yes.

If so, how is the y.inject module get included without a `requires
> y.inject` being specified?
>

It will resolve when a module uses the x.spi.Plugin it provides. (x in this
case) Hence, there is no need for any module to require y.inject. (as it
doesn't export anything).

If there is no module on the module path that uses the x.spi.Plugin, the
y.inject module will not resolve, and no exception will be thrown.

>

Reply via email to