Skip to content

Instantly share code, notes, and snippets.

@machielg
Last active August 5, 2017 13:51
Show Gist options
  • Save machielg/91d027d0fd7e569e49f4884b51172661 to your computer and use it in GitHub Desktop.
Save machielg/91d027d0fd7e569e49f4884b51172661 to your computer and use it in GitHub Desktop.
import io.crystalline.jigsaw.client.Client;
import io.crystalline.jigsaw.repo.SimpleCustomerRepository;
public class Application {
public static void main(String[] args) {
SimpleCustomerRepository repo = new SimpleCustomerRepository();
Client client = new Client(repo);
client.demonstrate();
}
}
module io.crystalline.jigsaw.app {
requires io.crystalline.jigsaw.client;
requires io.crystalline.jigsaw.repo;
}
module io.crystalline.jigsaw.client {
exports io.crystalline.jigsaw.client;
requires io.crystalline.jigsaw.client.needs;
}
module io.crystalline.jigsaw.client.needs {
exports io.crystalline.jigsaw.client.needs;
}
module io.crystalline.jigsaw.repo {
exports io.crystalline.jigsaw.repo;
requires io.crystalline.jigsaw.client.needs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment