On 24/11/2016 08:08, [email protected] 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