In this video, Nick Maiorano provides the solution to the challenge to structure a given set of classes into modules, to write the module-info classes, and to compile and run the application.
(chime)…- Now, I'm going to show you how I solved the problem.…Keep in mind that there is more than one right answer.…This is just how I solved it.…We'll look at the solution in exercise…file 3.10, starting with part 1.…The first thing I did was I created the directory structure.…Everything is under source.…I have two modules: com red 30 tech backend…and com red 30 tech database.…Next, I created the module-info class…for the database module.…
Here, I just exported the com red 30 tech…database api package.…The module name is com red 30 tech database.…I want to expose the least amount possible,…in this case just the api package.…Next, I created the module-info after the penta module.…The penta module is the backend module.…I added the require statement:…Requires com red 30 tech database.…
Next, I created the build and run script.…Here I have the usual module source…path option, and the run script.…Here I have the module path plus the…main class com red 30 tech backend processor,…which is being referred to via the dash M parameter…
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.