Jigsaw / JDK 1.7 will be the solution for 80% of the modularization challenges
Jigsaw will come with JDK 1.7 and is now part of the openjdk project and so opensource. Other JDK implementations could simply reuse it.It will become interesting, because:
- It will be shipped with every Oracle / Sun JDK 1.7 (at least it was the plan)
- Jigsaw will partition JDK 1.7 and will be loaded before most of the rt.jar code. So is already there - no reason to introduce another framework
- Its pragmatic: you can split packages across modules. Package splitting isn't a best practice, but makes the incremental modularization of legacy projects a lot easier
- Modules are loaded statically - no reloading. This is good enough for the most projects. Its funny - but in most NetBeans RCP / Eclipse RCP projects we had to deactivate the ability to load modules dynamically in production :-). Server operators don't like dynamic behavior either.
- It seems like there will be only one classloader, which will load all modules. This will eliminate majority of NoClassDefFoundErrors.
- javac will be jigsaw aware - this is a major advantage. Module dependencies should be checked as early as possible - it fits well with the nature of Java.
- Jigsaw should increase the classloading performance and significantly reduce the size of the jars and so the deployment
原文链接:http://www.adam-bien.com/roller/abien/entry/jigsaw_jdk_1_7_will
Jigsaw作为JDK 1.7的一部分,旨在解决大部分模块化挑战。它将随Oracle/Sun JDK 1.7一同发布,并在加载大多数rt.jar代码之前启动。Jigsaw支持包拆分,简化遗留项目的模块化工作。静态加载模块,提高类加载性能并减少部署大小。

被折叠的 条评论
为什么被折叠?



