Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 918 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 918 Bytes

Jigsaw Layers Example

Very short example on using Jigsaw Layers (used in presentation).

The example contains four commits:

  1. jigsaw.layers.Example module added that collects Java conferences via JavaConfProvider service interface
  2. GeeCON Prague provider added
  3. GeeCON Krakow provider added
  4. Jigsaw layer created that loads geecon.prague.provider module into a separate layer

How to build and run

You need JDK 10+ to run this example.

  1. Open the project in the IntelliJ IDEA (CE is enough).

  2. Build Project

  3. Create a run configuration:

    • Choose jigsaw.layers.example.JavaConfCollector as the main class
    • Use Jigsaw-Layers-Example as the classpath nodule
    • Use out/production/geecon.prague.provider as Program arguments
    • Use the root project directory as Working directory
  4. Run. You should get the following:

Hello from GeeCON Prague!
Hello from GeeCON Krakow!