Add posibility to add custom ModuleReaderFactory to ModuleFinder
Alan Bateman
Alan.Bateman at oracle.com
Fri Sep 28 14:54:36 UTC 2018
On 28/09/2018 15:30, Alex Sviridov wrote:
> Alan, thank you very much for your help. This is what I was looking for.
> Only one moment - as I understand the ModuleFinder that you
> implemented can
> work only with .war modules. However, at one JPMS layer I want to
> place .war
> modules and .jar modules. What should I do in such situation? Should I do
> ModuleFinder commonFinder = ModuleFinder.compose(jarFinder, warFinder);
Yes, this is way to compose them.
> Configuration cf = boot.configuration().resolve(commonFinder,
> ModuleFinder.of(), Set.of(jars+wars)); ?
For the root modules then I assume you just need the name of the
application module, not the names of the modules in the JAR files. You
may also want to use resolveAndBind so that service provider modules are
also resolved.
-Alan
More information about the jigsaw-dev
mailing list