Reputation: 4435
if I develop modules with the OSGi framework (bundles), can I integrate them in any OSGI based application such as Spring, right?
On what do I have to take care? What about the context or different data model?
Upvotes: 1
Views: 368
Reputation: 3641
You could ask the same thing for programming languages: if you develop something in Java, will you be able to integrate it in every Java based framework? The answer is: it depends.
In general, yes, you can take your bundle, and integrate, but it's not free. It will, probably, make it easier to integrate your functionality if you package it up nicely in a bundle.
Upvotes: 1
Reputation: 30004
In theory, yes. You'll have to take care if the target OSGi application is a different version of the OSGi spec (3, 4, 4.2, etc). You'll have to watch out if you're using an platform specific API as well.
Upvotes: 0