On Oct 7, 2009, at 12:18 , Clement Escoffier wrote:
iPOJO is set as a singleton bundle. It avoid installing twice iPOJO
on the same framework (which can lead to a big mess :-)).
By accident I was just reading up on the exact definition of singleton
in 3.5.2 of the spec and whilst adding that keyword tells the
framework not to *resolve* more than one bundle, it also states that
multiple versions can still be *installed*.
Quote:
singleton – Indicates that the bundle can only have a single version
resolved. A value of true indicates that the bundle is a singleton
bundle. The default value is false. The Framework must resolve at most
one bundle when multiple versions of a singleton bundle with the same
symbolic name are installed. Singleton bundles do not affect the
resolution of non-singleton bundles with the same symbolic name.
The spec does not explain here how to deal with situations where some
versions of a bundle are marked as singleton while others are not (and
I'm not even sure what would be the desired behaviour in such cases).
Greetings, Marcel