How to get a Module object from a ModuleReference

Viewed 384

Using the code:

ModuleFinder.of(Paths.get(path)).findAll() 

I am able to retrieve a Set<ModuleReference> of all the .jars in the path folder.

My next step would be getting a Module from a ModuleReference but there's no method that returns that, I can get a ModuleDescriptor but even that one doesn't help. Is there a way to do this?

2 Answers
Related