Jump to ratings and reviews
Rate this book

The Java Module System

Rate this book
Summary

Java's much-awaited "Project Jigsaw" is finally here! Java 11 includes a built-in modularity framework, and The Java Module System is your guide to discovering it. In this new book, you'll learn how the module system improves reliability and maintainability, and how it can be used to reduce tight coupling of system components.

Foreword by Kevlin Henney.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. You'll find registration instructions inside the print book.

About the Technology

Packaging code into neat, well-defined units makes it easier to deliver safe and reliable applications. The Java Platform Module System is a language standard for creating these units. With modules, you can closely control how JARs interact and easily identify any missing dependencies at startup. This shift in design is so fundamental that starting with Java 9, all core Java APIs are distributed as modules, and libraries, frameworks, and applications will benefit from doing the same.

About the Book

The Java Module System is your in-depth guide to creating and using Java modules. With detailed examples and easy-to-understand diagrams, you'll learn the anatomy of a modular Java application. Along the way, you'll master best practices for designing with modules, debugging your modular app, and deploying to production.

What's inside


The anatomy of a modular Java app
Building modules from source to JAR
Migrating to modular Java
Decoupling dependencies and refining APIs
Handling reflection and versioning
Customizing runtime images
Updated for Java 11

About the Reader

Perfect for developers with some Java experience.

About the Author

Nicolai Parlog is a developer, author, speaker, and trainer. His home is codefx.org.

Table of Contents


PART 1 - Hello, modules
First piece of the puzzle
Anatomy of a modular application
Defining modules and their properties
Building modules from source to JAR
Running and debugging modular applications
PART 2 - Adapting real-world projects
Compatibility challenges when moving to Java 9 or later
Recurring challenges when running on Java 9 or later
Incremental modularization of existing projects
Migration and modularization strategies
PART 3 - Advanced module system features
Using services to decouple modules
Refining dependencies and APIs
Reflection in a modular world
Module versions: What's possible and what's not
Customizing runtime images with jlink
Putting the pieces together

400 pages, Paperback

Published August 1, 2018

9 people are currently reading
57 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
10 (47%)
4 stars
9 (42%)
3 stars
2 (9%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 3 of 3 reviews
Profile Image for Jakub Zalas.
9 reviews15 followers
March 12, 2020
It’s surprising so much can be said about the java module system. It’s even more surprising a book about it can actually be interesting.
Profile Image for Jeanne Boyarsky.
Author 28 books76 followers
September 5, 2019
Up front: I'm a bit biased here as I was the Technical Development Editor and contributed a bit to this book. However, it is an excellent book.

When I started reading, I wondered how one could write a whole book about the Java Module System. Well you can. This book reminded me a little of the O'Reilly Regular Expression book. If you want to understand the topic just enough to get started, you can read just a little. If you want to understand it in depth, you can read the whole book.

I really liked the examples and migration strategies in this book. I didn't know much about the module system starting out. By the time I finished the book, I knew a good amount. Then I didn't use it and forgot.

This year, I took both OCP Java certification exams. As both covered modules, I used this book to study the topic. It came back right away and I am recommending chapters in this book to those studying for the certification. (Until study guides come out.) Conveniently, Manning allows buying parts of a book.

If you want to learn about modules rather than just pass the cert, you should buy the whole book though! You'll learn a lot; even in the appendixes.

Profile Image for Wim De Troyer.
5 reviews
December 16, 2024
Very interesting book, while remaining surprisingly light technically, thanks to the authors very good writing style.

No need to read all of the book, take what you need from it. Especially the first few chapters are important.
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.