官术网_书友最值得收藏!

Summary

In this chapter, we looked, at a high level, at some limitations of the traditional way of building reusable components in Java using JAR files. We saw how packaging libraries in JAR files doesn't allow developers to encapsulate inner APIs and types. There's also no way to reliably figure out whether a given application has all the necessary classes in the classpath. We learned how these problems that developers face in their code are not only present in the JDK code base itself, but are actually an issue on a much bigger scale. We understood the Java Platform Module System and the two primary goals that it set to achieve--strong encapsulation and reliable configuration. We learned about Project Jigsaw and the effort to modularize the core JDK using the same modular paradigm that's available to developers to use in their code.

At this time, you are probably wondering how the concept of modularity manifests in the Java language. What does a Java module look like?

In the next chapter, we'll answer these questions by creating our first Java 9 module, and get started on our sample application project which we'll be working on throughout this book.

主站蜘蛛池模板: 灯塔市| 抚顺县| 廊坊市| 康平县| 安宁市| 神池县| 思茅市| 柳林县| 敦化市| 台南县| 多伦县| 牡丹江市| 钟祥市| 巴东县| 随州市| 宁津县| 桓台县| 双鸭山市| 襄垣县| 长阳| 苗栗市| 广宁县| 邓州市| 武强县| 连山| 湖北省| 玉田县| 临颍县| 搜索| 云阳县| 新巴尔虎右旗| 全椒县| 江孜县| 漳浦县| 茂名市| 库尔勒市| 友谊县| 罗江县| 呼伦贝尔市| 台中市| 修水县|