June 2017
Beginner
1296 pages
69h 23m
English
In this chapter you’ll:
Understand the motivation for modularity.
Review the Java Platform Module System JEPs and JSRs.
Create module declarations that specify module dependencies with requires and specify which packages a module makes available to other modules with exports.
Allow runtime reflection of types with open and opens.
Use services to loosely couple system components to make large-scale systems easier to develop and maintain.
Indicate that a module uses a service or provides a service implementation with the uses and provides…with directives, respectively.
Use the jdeps command to determine a module’s dependencies.
Migrate non-modularized code to Java 9 with unnamed and automatic modules. ...
Read now
Unlock full access