In this video, Nick Maiorano shows how the service loader has been integrated into JPMS and how it can be used to express provider-consumer dependencies.
- [Instructor] I'm going to refactor the Chassis module.…I'll convert Chassis into an interface,…so that I can add different types of Chassis.…I'll also create a new package named…com.red30tech.chassis type,…where I'll have two implementations,…one named SuvChassis, and the other named SedanChassis.…This will now make it possible to create…as many different types of chassis…as the red30tech company wants to.…For the sake of simplicity, I'll ignore…the thousands of other car parts…that a real chassis would require.…
The Chassis interface now has these methods.…I'll continue to build on the red30tech.com example,…and keep the dependency hierarchy as is.…So, I'll still have the qualified exports…of com.red30tech.movement, rubber part,…to the Chassis and Axle module.…I now have a driver module that will…test drive the different types of chassis,…but there are now two implementations…of chassis, that can be chosen.…Which implementation will TestDriver use?…A dependency injection framework can wire…the desired implementation at Runtime,…
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.