Java 9 Modularity Revealed: Project Jigsaw and Scalable Java Applications

Alexandru Jecan

  • 出版商: Apress
  • 出版日期: 2017-09-29
  • 售價: $1,500
  • 貴賓價: 9.5$1,425
  • 語言: 英文
  • 頁數: 221
  • 裝訂: Paperback
  • ISBN: 1484227123
  • ISBN-13: 9781484227121
  • 相關分類: Java 程式語言JVM 語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

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 Jigs
aw. 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 
  • Build Java applications using the new modular system introduced in Java 9 
  • Create your own JRE consisting only of the modules that you require 
  • Adapt your testing techniques toward modular applications
  • lare your dependencies on other modules 
  • Enable modules to export only specific packages 
  • Migrate existing Java applications to modular ones 
  • Improve maintainability and performance of Java applications
  • Who This Book Is For

    Experienced Java programmers wanting to keep up and become informed on the new modularity support in Java 9

商品描述(中文翻譯)

開發模組化應用程式,使用 Java 平台模組系統,這是 Java 9 中最受期待的功能。透過僅部署所需的模組並封裝其實作細節,您將改善 Java 應用程式的可維護性和效能。

到目前為止,Java 一直是單體的。使用 Java 的任何一部分都意味著必須整合整個執行環境,這種方法不適合日益增加的物聯網設備,例如健身監測器、廚房電器、玩具和遊戲等。本書展示了一種新方法,使 Java 能夠從最小的設備的最小佔用空間擴展到桌上型電腦,甚至到伺服器平台。

在《Java 9 模組化揭密》中,您將學會如何利用 Java 9 中最重要的功能——Java 平台模組系統(更常見的名稱是 Project Jigsaw),使您的專案比以往更可靠和可擴展。您將學會如何避免 Java 程式設計中的一個主要痛點,即來自不同模組或套件的類別名稱衝突。您將學會創建自定義的執行時映像,這些映像代表一個最小且更緊湊的 JRE,只包含您所需的模組。您還將學會使用不同的方法和工具將現有的 Java 應用程式遷移到模組化的版本。最終結果是能夠無懼命名空間和其他衝突地將不同模組組合在一起,並且您可以將其部署到從小型設備到大型伺服器的各種平台。

本書提供了程式碼範例和解釋。

您將學到的內容:
- 使用 Java 9 中引入的新模組系統構建 Java 應用程式
- 創建僅包含您所需模組的自定義 JRE
- 調整您的測試技術以適應模組化應用程式
- 管理您對其他模組的依賴
- 使模組僅導出特定的套件
- 將現有的 Java 應用程式遷移到模組化版本
- 改善 Java 應用程式的可維護性和效能

本書適合對象:
有經驗的 Java 程式設計師,想要跟上並了解 Java 9 中的新模組化支援。