How to load resources from base module

wzberger javadevlist at
Mon May 22 08:05:35 UTC 2017

ClassA acts as a kind of resource loader and only the resource string is 
passed - is it possible to include the module name in the resource 
string something like "module!resource"?


Am 22.05.2017 um 09:55 schrieb Alan Bateman:
> On 22/05/2017 08:45, wzberger wrote:
>> Hm, so how can ClassA access the resource from module com.b directly 
>> - without having a class instance of module b?
> Does the code in ClassA have any context to work this? How does it 
> know the resource is in com.b? The APIs allow you to locate a resource 
> in com.b if you have a reference to a class in com.b or the Module 
> object for com.b.
> -Alan

More information about the jigsaw-dev mailing list