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

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.

主站蜘蛛池模板: 宝坻区| 济源市| 永善县| 内江市| 黎川县| 富锦市| 伽师县| 杭锦后旗| 阿鲁科尔沁旗| 榆林市| 新泰市| 乌什县| 濮阳县| 乌鲁木齐县| 定边县| 尚义县| 贵溪市| 驻马店市| 太白县| 仙游县| 洛浦县| 邮箱| 文登市| 南漳县| 忻州市| 安远县| 奎屯市| 集贤县| 宁化县| 胶州市| 清河县| 宁安市| 河北省| 新沂市| 临沭县| 阿拉善右旗| 依兰县| 沂水县| 定襄县| 金川县| 微山县|