uses is useless ?
Alan Bateman
Alan.Bateman at oracle.com
Thu Nov 24 09:04:54 UTC 2016
On 24/11/2016 08:08, forax at univ-mlv.fr wrote:
> I've resolved my problem of delegation of uses myself,
> trying to re-explain my problem, i wanted to provide a method on top of ServiceLoader and force modules that use that API to declare a directive uses.
This should work fine, assuming that the service types are accessible to
the middleman and it makes use of addUses.
-Alan
> In fact, you don't need any additional support from the jdk because you can already use the new StackWalker API to get the caller module and do the check using methods of java.lang.reflect.Module.
>
> cheers,
> Rémi
>
>
More information about the jigsaw-dev
mailing list