|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/java-platform-module-system-jpms-an-in-depth-introduction/
课程评论:没有评论
**课程名称:** Java 平台模块化系统 (JPMS) 深度解析 **课程概述:** 本课程深入探讨 Java 平台模块化系统 (JPMS),重点介绍其如何支持创建模块化、强封装、空间优化且可扩展的软件。JPMS 是 Java 9 的一项重要特性,作为 Project Jigsaw 的一部分引入,旨在解决早期 Java 版本面临的挑战。 在构建大型复杂软件时,代码的可理解性、可维护性、安全性和可扩展性至关重要。在 Java 9 之前,这些目标主要依赖于信息隐藏等设计原则,但有时包和访问修饰符难以完全满足需求,导致“JAR 冲突”等配置问题以及单体库的普遍存在。JPMS 通过引入模块这一新的抽象层,有效解决了这些限制,实现了更好的封装、更可靠的配置,并能够创建空间优化、可扩展的软件。 课程内容涵盖 JPMS 旨在解决的问题、模块的解剖以及如何在命令行和 Eclipse 中创建模块。您将学习模块化代码与非模块化代码之间的互操作性。此外,课程还将重点讲解如何创建自定义运行时镜像 (JRE) 或更小的发行版,这是每位开发者的必备技能。最后,课程将介绍 JPMS Services,这被视为模块化编程的基石,它使应用程序更具可扩展性,能够支持在运行时添加新服务。 课程通过详实的解释、真实的示例、清晰的插图和实践演示,确保学习者充分掌握各项概念。 **最新更新:** 新增了关于 JPMS Services 的章节,该功能有助于创建完全解耦的服务。
Recent Updates: Added a new section on JPMS Services, which help in creating completely decoupled servicesThis course provides an in-depth understanding of the Java Platform Module System (JPMS) and how it enables the creation of modular, strongly encapsulated, and space-optimized software that is extensible. JPMS is a major feature of Java 9, introduced as part of Project Jigsaw to address challenges faced by earlier versions of Java.When building large, complex software, it is crucial that the code is easy to understand, maintain, secure, and extend. These are essential goals for any well-designed system. Prior to Java 9, achieving these goals relied heavily on design principles like Information Hiding, which utilized packages and access modifiers. However, in some cases, packages and access modifiers fell short, compromising these objectives. Java also faced significant issues with configuration (commonly referred to as JAR hell) and the tendency to ship as a monolithic library. JPMS resolves these limitations by introducing modules, a new layer of abstraction that ensures better encapsulation, more reliable configuration, and the ability to create space-optimized, extensible software.In this course, we begin by exploring the problems JPMS was designed to solve, helping you understand its purpose clearly. Next, we'll dive into the anatomy of a module and how to create them from both the command line and Eclipse. You'll also learn how modular and non-modular code can interoperate. One of the most exciting features of JPMS is the ability to create custom runtime images (JREs) or smaller distributables, and in this course, you'll learn exactly how to do that-an essential skill for every developer. Finally, we learn about JPMS Services. Considered the cornerstone of modular programming, JPMS Services enable our application to be extensible allowing us to add new services at runtime.Each concept is thoroughly explained with realistic examples, clear illustrations, and practical demonstrations to ensure you grasp the material fully.