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

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.

主站蜘蛛池模板: 揭西县| 崇文区| 铜山县| 启东市| 彭泽县| 茶陵县| 毕节市| 榆林市| 肥城市| 临湘市| 乐业县| 武冈市| 神池县| 襄垣县| 调兵山市| 咸丰县| 桃园市| 广南县| 内乡县| 清水河县| 太白县| 福安市| 哈巴河县| 肥西县| 湖南省| 白玉县| 黄浦区| 南乐县| 旺苍县| 元谋县| 万山特区| 师宗县| 桃园市| 文水县| 泌阳县| 枞阳县| 镇江市| 定日县| 长子县| 桂平市| 克东县|