In this video, Nick Maiorano describes some of the features with the module-info class, including what is permitted and what isn't permitted inside the class.
- [Presenter] Remember the golden rule:…export a package, but require a module.…This can be somewhat confusing at first,…because the naming conventions of both modules…and packages use the reverse domain name pattern.…So when referring to a name,…be aware that it may be referring…to a module or package, and that both look the same.…Be sure to refer to a package when exporting,…and a module when requiring.…There are a few more subtleties when working with modules.…For example, a module can expose…any number of packages to foreign modules,…but they must each include their own export statement.…
There's also no support for comma-delimited packages…that can be specified in one export statement.…So this would give a compilation error.…There's also no support for wild cards.…By default, dependencies are not transitive.…This is a fancy way of saying that…what a module depends upon isn't automatically passed on…to other modules that depend upon it.…For example, if module…com.red30tech.axle depends upon…com.red30tech.movement, it does not make…
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.