What is the best way of grouping OSGi bundles to make a coherent 'application'

前端 未结 3 584
暖寄归人
暖寄归人 2021-02-14 03:24

The \"OSGi way\" is to develop separate bundles containing discrete, coherent pieces of functionality. Sometimes these bundles contain utility classes, sometimes they depend on

3条回答
  •  执念已碎
    2021-02-14 04:09

    I think the word you're looking for is 'subsystem', I think there is an OSGi draft spec. out there.

    My personal view:

    Build your bundles and store them somewhere (For example a Sonatype Nexus server, I'm pretty pleased with it, it even has support for OBR and a limited support for generating p2 data)

    An 'application' is then a selection of bundles with a certain version out of that repository, which you can version again.

    There is no real standard yet, I think at this point you'll need to pick one of the non standard ones out there. The cost of changing to the standard one or even support multiple ones shouldn't be all that great.

    These slides mention all of them

提交回复
热议问题