On 10/7/09 13:23, Marcel Offermans wrote:
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*.
Yes, that is true. The exception about non-unique symbolic name and
version should only happen if you are trying to install the same bundle
twice.
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).
Singleton-ness is only guaranteed for bundles marked with singleton,
those that aren't are ignored.
-> richard
Greetings, Marcel
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]