In this video, Nick Maiorano provides the solution to the challenge to perform piecemeal transition from classes to modules, and to have the two co-exist in an application.
- [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.…
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.
- What is modularity?
- The five pillars of modularity
- Modularity in the real world
- JPMS concepts and syntax
- Designing and implementing a modular structure
- Compiling, packaging and running modular applications
- Using the dependency checking tools
- Creating custom runtime images
- Managing backward compatibility with classes and modules
- Explicit, unnamed, and automatic modules
- JPMS tips and recommendations
Skill Level Intermediate
Java Essential Training: Syntax and Structurewith David Gassner3h 9m Intermediate
1. Introduction to Modularity
2. Java Modularity through the Ages
3. Building Modular Applications with Java
4. Tools and Strategies
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.