Jigsaw Layers Example
Very short example on using Jigsaw Layers (used in presentation).
The example contains four commits:
- jigsaw.layers.Example module added that collects Java conferences via JavaConfProvider service interface
- jPrime provider added
- jProfessionals provider added
- Jigsaw layer created that loads jprime.provider module into a separate layer
How to build and run
You need JDK 10+ to run this example.
Open the project in the IntelliJ IDEA (CE is enough).
Create a run configuration:
jigsaw.layers.example.JavaConfCollectoras the main class
Jigsaw-Layers-Exampleas the classpath nodule
out/production/jprime.provideras Program arguments
- Use the root project directory as Working directory
Run. You should get the following:
Hello from jPrime! Hello from jProfessionals!