Java Modules - Java Package Aggregationhtml

This chapter provides tutorial notes on Java modules. Topics include Java module descriptor; module dependency; exporting package out of module; creating module JAR/JMOD file; creating custom JRE with added modules; testing package visibilities.


These sections are omitted from this Web preview version. To view the full content, see information on how to obtain the full version this book.

What Is Java Module

Module Descriptor - module-info.java

Creating "Hello World!" Module

"jmod create" - Creating JMOD File

"jlink --add-modules" - Creating Custom JRE

Running ".\bin\java" Command in Custom JRE

Accessing Non-Exported Package in Module

Module Dependency and Package Accessibility

com.herongyang.base Module Implementation

com.herongyang.base Module Compilation

com.herongyang.math Module Implementation

geometryJRE and Module Deliverables

Getting com.herongyang.base Module Info

Testing Exported Package in Module

Testing Un-Exported Package in Module

Application using com.herongyang.math Module


Conclusion:

Table of Contents

 About This Book

 JDK - Java Development Kit

 Execution Process, Entry Point, Input and Output

 Primitive Data Types and Literals

 Bits, Bytes, Bitwise and Shift Operations

 Managing Bit Strings in Byte Arrays

 Reference Data Types and Variables

 StringBuffer - The String Buffer Class

 System Properties and Runtime Object Methods

 Generic Classes and Parameterized Types

 Generic Methods and Type Inference

 Lambda Expressions and Method References

Java Modules - Java Package Aggregation

 Execution Threads and Multi-Threading Java Programs

 ThreadGroup Class and "system" ThreadGroup Tree

 Synchronization Technique and Synchronized Code Blocks

 Deadlock Condition Example Programs

 Garbage Collection and the gc() Method

 Outdated Tutorials

 References

 Full Version in PDF/EPUB