Re: j.l.r.Module: addUses but no addProvides

2016-05-12 Thread Sander Mak
> On 12 May 2016, at 09:16, Alan Bateman wrote: > > So no plan at the moment to add this, we want to see if there are compelling > cases where service providers are created dynamically in (existing) modules > before deciding whether to define this method or not. Fair enough. I was just wonde

Re: j.l.r.Module: addUses but no addProvides

2016-05-12 Thread Alan Bateman
On 12/05/2016 08:00, Sander Mak wrote: 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 co

j.l.r.Module: addUses but no addProvides

2016-05-12 Thread Sander Mak
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 implement