Patch-module with dynamic layer creating.

Alan Bateman Alan.Bateman at oracle.com
Fri Oct 12 14:49:56 UTC 2018


On 12/10/2018 13:16, Alex Sviridov wrote:
> Hi Alan
>
> Maybe it is necessary to add possibility to have equal control for boot layer and
> other layers. Because layers are graph but at this moment we can do for boot layer
> more then for others -> if we work with non boot layers we must use another
> solutions -> different solutions within one technology is not good.
>
> For example we could pass something like String[] args when we create custom layer.
>
I don't know if that is really feasible as you would somehow need to 
identify the layer and then somehow interpose on the ModuleFinders that 
the container creates. Instead, I think it needs the container to create 
a ModuleFinder that finds the patched modules. Yes, this means doing 
something similar to patch support that the JDK does for the modules in 
the boot layer but it would be under the control of the container. It 
shouldn't be a lot of code to this do.

-Alan


More information about the jigsaw-dev mailing list