felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Swindell <eric.swind...@att.net>
Subject Re: [jira] Assigned: (FELIX-339) Ensure bundle identifiers never get reused
Date Thu, 16 Aug 2007 22:56:39 GMT
On Thursday 16 August 2007 05:47:37 pm BJ Hargrave wrote:
> Use case: A bundle like Preference Service manages persistent storage for
> other bundles based upon a bundles identity. This bundle needs to know
> when a bundle for which it managing storage has permanently gone. If
> bundle ids can be reused, the Prefs bundle would not be able to destroy
> the original bundle's information and would provide it to the new bundle.
> The Prefs bundle might not be running at the time the original  bundle is
> uninstalled and thus would not receive the UNINSTALLED event. So it must
> rely on the fact that the framework guarantees that bundle ids are never
> reused.

Your premise implies that the implementation requirement takes higher 
precedence than the spec.  Seems like the tail is wagging the dog :)  I 
thought that symbolic name was added to the spec for bundle identity.

>
> In any case, you can take my word for it, since I was there when all this
> was first conceived. From the R1 spec:
>
> "Once its value is assigned to a bundle, that value must not be reused for
> another bundle, even if the original bundle is uninstalled."

If you read your prior posting and my prior reply, you'll see that we agree on 
the spec's interpretation.  You said that if the framework instance 
was 'thrown away', then id consistency is not relevant.  I agree with this.

Eric


Mime
View raw message