Modular Programming in Java 9

Key FeaturesMaster design patterns and best practices to build truly modular applications in Java 9Upgrade your old Java code to Java 9 with easeBuild and run a smooth functioning multi-module application.Book DescriptionThe Java 9 module system is an important addition to the language that affects the way we design and organize code and libraries in Java. It provides a new way to achieve maintainable code by the encapsulation of native Java types, as well as a way to write better libraries that have clear interfaces.The module system is a deviation from the package based method of organizing code in earlier versions of Java. Effectively using the module system requires an understanding of how modules work and what the best practices of creating modules are.This book will give you step-by-step instructions to create new modules as well as migrate code from earlier versions of Java to the Java 9 module system. It will begin by introducing you to modular programming, and you’ll get to write your first module. It will then go on to explain how inter-module dependencies are handled, and then introduces the modular JDK. Next, you will learn about Module resolution, linking, and using jlink. We will end our journey by taking a look at the road ahead. You will learn how to upgrade your code to Java 9, as well as handle issues with libraries. The final chapter will talk about Java 9 and its relation with OSGi, and how they can be used together.What you will learnGet introduced to the concept of modules and modular programmingFind out about the challenges of code structure pre-Java 9, and understand why modular programming was introduced in the Java spec.Build and configure your own Java 9 modulesWork with multiple modules and establish relationships between themUnderstand and use the principles of encapsulation, readability, and servicesUse jlink to work with multiple modules like a proDiscover the best practices to help you write awesome modules that are a joy to use and maintainUpgrade your old Java code to the new Java 9 module systemAbout the AuthorKoushik Kothagal is the founder of Java Brains, the online learning platform that teaches various enterprise Java and JavaScript technologies entirely for free. He has over 14 years of professional experience working on full-stack web applications and has worked extensively with technologies such as Java, Spring, Java EE, JavaScript and AngularJS. He loves teaching, and when he’s not coding Java and JavaScript, he’s probably teaching it! He currently works as an enterprise web engineer in the Bay Area.

Author: Koushik Kothagal

Learn more