In this video, Nick Maiorano issues a challenge to structure a given set of classes into modules, to write the module-info classes, and to compile and run the application.
- Now it's time for a challenge.…In the exercise files,…there are these four classes. Database, DatabaseFactory,…InMemoryDatabase, and Processor.…The database is a simple interface defining 4-CRUD like…methods and implemented by the class, InMemoryDatabase.…DatabaseFactory creates instances of databases.…In this example, it will always be InMemoryDatabase…and finally Processor is the user of this database.…
For part one, modularize these pre-created java classes.…Create the entire module and package hierarchy.…Create two different modules names com.red30tech.database…and com.red30tech.backend.…Put each of these classes in their respective modules.…Create the module-info classes that allow the database…module to offer its services to the backend module.…While exposing the least amount of information possible.…
And finally, compile and run the program…using the new command-line options.…This first set of action should take you about 15 minutes.…As a part two, add a new Cache module to the project.…The Cache module is an optional module…
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.