- [Instructor] Let's take a look at my…solution to this challenge.…Since there is only enough budget allocated…to modularize two packages to modules,…I will pick airbag and movement.…This is because both of these have no dependencies.…If I pick chassis and axle instead,…then they could not feed airbag and movement…because the latter two would be unnamed modules.…So the strategy is to pick the packages…with no dependencies first.…But there will still be a problem.…The driver module will still have a dependency on chassis.…

Named modules cannot read unnamed modules.…Since there's no budget allocated to modularize chassis,…I could create a JAR file out of chassis…and have it treated as an automatic module.…Now driver could depend upon chassis,…and chassis could use all the classes in axle…because as an automatic module it can read…an unnamed module.…Now on to part two, where there's only one more…package that can be modularized.…Let's first look at chassis and axle in isolation…as unnamed modules.…

The solution is to modularize axle.…

Resume Transcript Auto-Scroll

Author

Released

1/10/2018

Project Jigsaw is the star attraction of Java 9. It introduces the Java Platform Module System (JPMS) and makes it possible to create modular applications natively in Java. Modularity is key in managing complexity in modern applications but is also a complex subject in it of itself that impacts the entirety of an application.

In this course, instructor Nick Maiorano breaks down this complexity by explaining what modularity is all about, how Java has adopted modularity and how to start using to build better quality applications.