是什么使自动模块?
自动模块,stackoverflow上普遍存在的主题,是由模块路径上的非模块化的JARS System自动创建的。 These modules enable modular dependencies on legacy code.
Module Properties
Name: Derived from the Automatic-Module-Name manifest header or the JAR filename
- Requires: Automatically granted access to all other modules including the unnamed module (the class path)
- Exports/Opens: All packages are exported and opened for reflection
- Additional Features
Automatic modules provide services listed in元I-INF/Services。可以通过其主层输入来启动它们。
自动模块,可以在模块化和非模块化范围之间桥接差异,允许模量jars jar jars jar jars jars jars jars jars jars jars jars jars jar jars to jars jars jars to jars jar jars to jars jars to jars。它们充当模块和类路径之间的桥梁。- 通过将平原的罐子放在模块路径上并要求其自动创建的模块,开发人员可以在维护模块功能的同时保留类路径依赖项。随着依赖性变成模块化,它们可以无缝过渡到桥梁上,将自己的依赖项作为自动模块。此过程逐渐使生态系统模块化,同时保留旧版代码和现代模块之间的连接。