On Mar 14, 2009, at 22:22 , Stevens Gestin wrote:

For my OSGI bundles development I choose to make bundles as independent as possible on other bundles. In this approach, I'm not sharing libraries like logging, SAX, etc. and each bundle uses its own library set. Is this a bad
concept?

No, it's a trade-off between coupling all users of a library to that library bundle and resource usage because you have a copy of that library in every bundle. In practice, having that copy in every bundle does not even mean that every single class in the library gets loaded N times, that depends on what percentage of the library actually gets used. You can probably then use a tool like Bnd or an obfuscator to only include the parts you actually use.

Greetings, Marcel


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to