Felix Meschberger wrote:
Hi,

Am Freitag, den 25.04.2008, 18:23 +0200 schrieb Alexander Saar:
If you are only using parts of these frameworks, you can add the packages you need as private packages and the maven bundle plugin will add them to the bundle.

This is actually a good idea for small dependencies and allows for the
encapsulation of them. We do this in Apache Felix SCR for example for
the XML parser. No other bundles knows about this parser so there is
also no version conflict etc.

I went to a session by Peter Kriens lately and he said that if you're using the third party stuff just for this one bundle, embed it. You should always think what might be the bigger pain: handling the dependency (by creating a wrapper bundle which might have other dependencies) or duplicating the binary code in memory (please note that you still use the same single source for the embedded lib, so this is not code duplication.

Carsten
--
Carsten Ziegeler
[EMAIL PROTECTED]

Reply via email to