In this video, Nick Maiorano introduces the module-info class and some basic examples of the new syntax that can be used to express modularity concerns.
- [Instructor] Let's take a look at the syntax.…I'm going to start by using one of the exercise files…that I've installed on my desktop.…This will be under chapter two…and will be exercise zero two zero four.…I also have the final and initial state that I'll be using.…The initial state is the beginning part of the code…where we'll start and the file represents…the final state when the exercise is done.…So let's clear the screen…and we'll get started on the initial folder.…
The hierarchy contains two modules, axle and movement.…Source com red30tech movement and source com red30tech axle.…Now I'm going to create the module info class file…at the root of the module.…JPS mandates that the name of the file…must be exactly as it's shown, that's module-info.java.…Modules are named via the module keyword.…
This defines a simple module names com.red30tech.movement.…The module itself must be placed…inside the root directory that bears it's name,…in this case the classes…and packages of com.red30tech.movement…must be placed in the directory com.red30tech.movement…
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
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.