我是 OSGi 标准的新手。我想更多地了解 bundle 文件的结构。
最佳答案
您可能会查看 OSGi 核心规范。您可以从 OSGi Alliances website 下载它(它实际上相当可读)。例如,对于 4.2 版规范,第 3.2 章详细讨论了 bundle 及其结构。正如在另一个答案中已经提到的,包实际上是带有 list 的普通 jar 文件,其中包含几个特殊的 list header 。
其中一些标题还允许您指定某些文件的位置,例如在第 3.2.1.11 节中定义了 Bundle-Localization header :
The Bundle-Localization header contains the location in the bundle where localization files can be found. The default value is OSGI-INF/l10n/bundle. Translations are by default therefore OSGI-INF/l10n/bundle_de.properties, OSGI-INF/l10n/bundle_nl.properties, etc
关于localization - OSGi bundle 结构是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1831117/