What is the practical use of JPMS layers?

Christian Stein sormuras at gmail.com
Tue Jan 16 07:10:58 UTC 2024


An exemplary use of module layers is documented and implemented here:
https://github.com/moditect/layrry

Copied from its "Why Layrry?" section:

This is where Layrry comes in: utilizing the notion of module layers, it
> provides a declarative approach as well as an API for assembling
> modularized applications, organized in module layers. The JARs to be
> included are described using Maven GAV (group id, artifact id, version)
> coordinates, solving the issue of retrieving all required JARs in the right
> version.



Module layers allow to use different versions of one and the same module in
> different layers of an application (as long as they are not exposed in a
> conflicting way on module API boundaries).


Cheers,
Christian

On Mon, Jan 15, 2024 at 6:58 PM PavelTurk <pavelturk2000 at gmail.com> wrote:

> Hello all.
>
> JPMS is not only about modules, but it also supports layers. What is the
> practical use of JPMS layers?
>
> Best regards, Pavel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jigsaw-dev/attachments/20240116/4e993948/attachment-0001.htm>


More information about the jigsaw-dev mailing list