j.l.r.Module: addUses but no addProvides
Sander Mak
sander.mak at luminis.eu
Thu May 12 07:00:36 UTC 2016
Hi,
I noticed that it is possible to reflectively add uses for a service in a module, but not to provide a service implementation. I'm curious what the reason is for this asymmetry. I would imagine that calling ServiceLoader.load() from another module could just return the new service implementation (in addition to existing ones) after a hypothetical j.l.r.Module.addProvides was called.
Sander
More information about the jigsaw-dev
mailing list