Linked e-resources
Details
Table of Contents
At a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Chapter 1: Introduction; Introduction to JDK 9; How to Read This Book; System Requirements; Installing the NetBeans IDE; Downloading the Source Code; Chapter 2: The Module System; Life Before Java 9; The New Module System; What Is a Module?; Module Dependencies; Module Graph; Aggregator Modules; Declaring Modules; Module Names; Controlling Access to Modules; Declaring Dependency; Configuring Services; Module Descriptors; Compiling Module Declarations; Module Version
Module Source Files StructurePackaging Modules; A Module in a Directory; A Module in a Modular JAR; A Module in a JMOD File; Module Path; Observable Modules; Summary; Chapter 3: Creating Your First Module; Using the Command Prompt; Setting Up the Directories; Writing the Source Code; Compiling the Source Code; Packaging the Module Code; Running the Program; Using the NetBeans IDE; Configuring the IDE; Creating the Java Project; Setting the Project Properties; Adding the Module Declaration; Viewing Module Graph; Writing the Source Code; Compiling the Source Code; Packaging the Module Code
Running the ProgramSummary; Chapter 4: Module Dependency; Declaring Module Dependency; Troubleshooting the Example; Empty Package Error; Module Not Found Error; Package Does Not Exist Error; Module Resolution Exception; Implicit Readability; Qualified Exports; Optional Dependency; Accessing Modules Using Reflection; Open Modules; Opening Packages; Using Deep Reflection; Type Accessibility; Splitting Packages Across Modules; Restrictions in Module Declarations; Types of Modules; Normal Modules; Open Modules; Automatic Modules; Unnamed Modules; Normal Modules to Unnamed Modules
Unnamed Modules to Normal ModulesMigration Path to JDK 9; Dissembling Module Definitions; Summary; Chapter 5: Implementing Services; What Is a Service?; Discovering Services; Providing Service Implementations; Defining the Service Interface; Defining Service Providers; Defining a Generic Prime Service Provider; Defining a Faster Prime Service Provider; Defining a Fastest Prime Service Provider; Testing the Prime Service; Selecting and Filtering Providers; Testing Prime Service in Legacy Mode; Summary; Chapter 6: Packaging Modules; The JAR Format; What Is a Multi-Release JAR?
Creating Multi-Release JARsRules for Multi-Release JARs; Modular Multi-Release JARs; Modular Multi-Release JARs and Encapsulation; Multi-Release JARs and Boot Loader; Same Versioned Files; Multi-Release JARs and JAR URL; Multi-Release Manifest Attribute; The JMOD Format; Using the jmod Tool; Creating JMOD Files; Extracting JMOD File Contents; Listing JMOD File Contents; Describing a JMOD File; Recording Modules Hashes; Summary; Chapter 7: Creating Custom Runtime Images; What Is a Custom Runtime Image?; Creating Custom Runtime Images; Binding Services; Using Plugins with the jlink Tool
Module Source Files StructurePackaging Modules; A Module in a Directory; A Module in a Modular JAR; A Module in a JMOD File; Module Path; Observable Modules; Summary; Chapter 3: Creating Your First Module; Using the Command Prompt; Setting Up the Directories; Writing the Source Code; Compiling the Source Code; Packaging the Module Code; Running the Program; Using the NetBeans IDE; Configuring the IDE; Creating the Java Project; Setting the Project Properties; Adding the Module Declaration; Viewing Module Graph; Writing the Source Code; Compiling the Source Code; Packaging the Module Code
Running the ProgramSummary; Chapter 4: Module Dependency; Declaring Module Dependency; Troubleshooting the Example; Empty Package Error; Module Not Found Error; Package Does Not Exist Error; Module Resolution Exception; Implicit Readability; Qualified Exports; Optional Dependency; Accessing Modules Using Reflection; Open Modules; Opening Packages; Using Deep Reflection; Type Accessibility; Splitting Packages Across Modules; Restrictions in Module Declarations; Types of Modules; Normal Modules; Open Modules; Automatic Modules; Unnamed Modules; Normal Modules to Unnamed Modules
Unnamed Modules to Normal ModulesMigration Path to JDK 9; Dissembling Module Definitions; Summary; Chapter 5: Implementing Services; What Is a Service?; Discovering Services; Providing Service Implementations; Defining the Service Interface; Defining Service Providers; Defining a Generic Prime Service Provider; Defining a Faster Prime Service Provider; Defining a Fastest Prime Service Provider; Testing the Prime Service; Selecting and Filtering Providers; Testing Prime Service in Legacy Mode; Summary; Chapter 6: Packaging Modules; The JAR Format; What Is a Multi-Release JAR?
Creating Multi-Release JARsRules for Multi-Release JARs; Modular Multi-Release JARs; Modular Multi-Release JARs and Encapsulation; Multi-Release JARs and Boot Loader; Same Versioned Files; Multi-Release JARs and JAR URL; Multi-Release Manifest Attribute; The JMOD Format; Using the jmod Tool; Creating JMOD Files; Extracting JMOD File Contents; Listing JMOD File Contents; Describing a JMOD File; Recording Modules Hashes; Summary; Chapter 7: Creating Custom Runtime Images; What Is a Custom Runtime Image?; Creating Custom Runtime Images; Binding Services; Using Plugins with the jlink Tool