What is the package structure of the OSGi package?

I am new to OSGi standard. I want to know more about the package file structure.

  1. find this OSGi-INF folder there, the specification mentions about l10n and resolution, I wonder where the use of the OSGI-INF folder is defined? Can I put other things in it?
  2. Where to store the jar files referenced by the package?
  3. other than OSGi-INF and OSGi-OPT, are there any folders defined by the OSGi standard?
+3
source share
3 answers

The only element of the OSGi package that is required are the specific package entries in the META-INF / MANIFEST.MF file.

OSGi-INF and OSGi-OPT are optional.

, OSGi: http://swik.net/Spring/Interface21+Team+Blog/Creating+OSGi+bundles/

, DS ( ) OSGi-INF: http://www.eclipsezone.com/eclipse/forums/t97690.html

+2

, OSGi Core. - OSGi ( ). , 4.2 3.2 . , jar , .

, . 3.2.1.11 Bundle-Localization:

Bundle-Localization . OSGI-INF/l10n/. OSGI-INF/l10n/bundle_de.properties, OSGI-INF/l10n/bundle_nl.properties, ..

+2

OSGi JAR , JAR, META-INF/MANIFEST.MF ( ).

- , , META-INF/spring META-INF/maven, Spring Maven .

Some OSGi services define similar directory usage conventions OSGI-INF. As far as I know, in the specification there is no single place where all this agreement is listed. You can open the characteristics and find "OSGI-INF" to find all occurrences :-) Don’t worry, there are not so many of them.

0
source

Source: https://habr.com/ru/post/1724470/


All Articles