Hello, A general OSGi R5 question, in the context of embedded Felix...
I have an application that can import/export Java packages just fine (normal OSGi stuff). The application runs with an embedded Jetty server (not using HTTP servlet bridge). It has the capability of customizing the user interface based on different requirements for different deployments for end users. These customizations involve some bundles that publish servlets for different JavaScript libraries where bundles may publish more than one JavaScript library (say, things like Modernizr, jQuery, Underscore, Backbone) ; same idea with CSS. I'm looking for a solution where I can push up client-side dependencies that don't depend on Java packages to OSGi, something perhaps aligned with client-side Require-JS. Provide-Capability and Require-Capability look like a solution. I've read the spec but have some (hopefully quick) questions. 1) Can Provide-Capability define a version, and Require-Capability require a version range ? (say bundle X provides jQuery 2.1.1 and bundle Y requires [2.0,3.0) ; I'm unsure how to write this for these headers). 2) Do I need to define namespace classes like those for standard framework classes? 3) Are there good alternative approaches ? Thanks, Christopher