On 12/10/2018 16:00, Alex Sviridov wrote:
I am speaking not only about patch-module but about all possible options:
--add-exports, --add-opens, --patch-module, --add-modules, --add-reads etc.

ModuleLayer defines static variants of the defineModuleXXX methods that return a Controller object that you can use to do the equivalent of --add-reads or --add-exports/-add-opens to export/open a package to specific modules. The equivalent of --add-modules is to add module name to the set of modules to resolve.

For patching then it does mean writing code and creating your own ModuleFinder but it shouldn't be too difficult.

-Alan.

Reply via email to