Java Magazine, Jan/Feb 2018
ORACLE COM JAVAMAGAZINE JANUARY FEBRUARY 2018 07 JAVA 9 MODULARITY By Sander Mak and Paul Bakker The introduction of modules in Java 9 significantly changed how Java applications are built and delivered These changes are particularly important for developers of Java libraries who need to work out their strategy for delivering java books Java 9 Books The wave of books for the new release is now arriving As with all previous major releases the arrival of Java 9 has unleashed a wave of books examining and explaining its new features The next few book columns will review important titles that youll want to be aware of In this installment I look at two books one specifically on Java 9 modules and one on the larger language modular JAR files while continuing to provide the traditional bits that run on JVMs prior to this new release Although you certainly can run apps on the Java 9 runtime without using modules it is expected that most sites will switch over to module based binaries during the next few years Some sites especially those wrestling with so called classpath hell will likely find incentive to move to modules as quickly as possible Those sites will discover a trove of useful information in Mak and Bakkers new work The book opens with a detailed explanation of what modules are and how they work The first four chapters cover the anatomy and use of modules in detail with plenty of examples Its a very readable guide The remaining 180 pages are where the value is really apparent These pages start out covering modularity patterns which are ways of architecting modules so that they work together ideally The goal is to find the balance between devising modules that naturally that is conceptually fit together while creating the minimum number of dependencies on external modules This tension is familiar to Java architects designing JARs However the impetus to get the design right in traditional JARs historically has been more of a desirable goal than an imperative With modules it becomes a much more serious proposition The whole point of
You must have JavaScript enabled to view digital editions.