Java 9 Modularity Revealed: Project Jigsaw and Scalable Java ApplicationsApress, 27 вер. 2017 р. - 221 стор. Develop modular applications using the Java Platform Module System, the single most anticipated feature in Java 9. You will improve maintainability and performance of your Java applications by deploying only modules that are needed and encapsulating their implementation details. Until now Java has been monolithic. Using any one part of Java has meant incorporating the entirety of the runtime environment, an approach ill-suited to the increasing number of IoT devices such as fitness monitors, kitchen appliances, toys and games, and so forth. This book shows a new way, to make Java scale from the smallest of footprints in the smallest of devices through desktop PCs and on up to server platforms. With Java 9 Modularity Revealed you will learn to make your projects more reliable and scalable than ever using the most important feature in Java 9—The Java Platform Module System, known more commonly as Project Jigsaw. You will learn how to avoid one of the major pain points of Java programming, that of conflicting class names from different modules, or packages. You will learn to create custom run-time images that represent a minimal and more compact JRE containing only those modules that you need. You will further learn to migrate existing Java applications to modular ones using different approaches and tools. The end result is a new ability to plug together different modules without fear of namespace and other conflicts, and you can deploy to everything from small devices to large servers. This book provides code examples and explanations. What You'll Learn
Who This Book Is For Experienced Java programmers wanting to keep up and become informed on the new modularity support in Java 9 |
Зміст
Modular Programming Concepts | 1 |
Project Jigsaw | 17 |
Modular JDK and Source Code | 31 |
Defining and Using Modules | 45 |
Modular Runtime Images | 86 |
Services | 95 |
Jlink The Java Linker | 105 |
Migration | 123 |
The New Module API | 155 |
Advanced Topics | 173 |
Testing Modular Applications | 188 |
Integration with Tools | 205 |
216 | |
Інші видання - Показати все
Java 9 Modularity: Project Jigsaw and Scalable Java Applications Alexandru Jecan Попередній перегляд недоступний - 2017 |
Загальні терміни та фрази
add-exports add-modules Apache Maven API specification automatic module boot layer chapter class files class loader class path ClassLoader com.apress command-line option compile-time contains create default define descriptor of module example exports clause implementation important inside the module Intellij IDEA interface introduced in Java Java 9 Java launcher Java Platform Java Platform Module Java SE java.desktop java.sql javac JDeps JDK 9 JDK 9 API JDK internal APIs Jecan JMOD files Junit test classes libraries Listing located Log4j Main class method migration modular application modular JAR files modular programming module API module com.apress.moduleA module declaration module descriptor module graph module java.base module name module path module_name module-info.class file module-info.java file module-source-path ModuleLayer multi-release JAR file named modules NetBeans open module OSGi patch-module Platform Module System plugin Project Jigsaw public class rt.jar runtime image service providers source code specify split packages String strong encapsulation types unnamed module