You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by dorona <do...@nkstream.com> on 2011/07/04 16:40:32 UTC

Bundle Update criteria

when felix updates installed bundles by which criteria does it performs the
update.
is it by the bundle-version ,last-modified characteristic or does it updates
every bundle it can find?

many thanks 
doron.
-- 
View this message in context: http://old.nabble.com/Bundle-Update-criteria-tp31990007p31990007.html
Sent from the Apache Felix - Dev mailing list archive at Nabble.com.


Re: Bundle Update criteria

Posted by "Richard S. Hall" <he...@ungoverned.org>.
On 7/4/11 10:40, dorona wrote:
> when felix updates installed bundles by which criteria does it performs the
> update.
> is it by the bundle-version ,last-modified characteristic or does it updates
> every bundle it can find?

The framework doesn't just update bundles on its own. Someone must tell 
it to do an update by calling Bundle.update(). This method will 
completely replace the existing bundle JAR file with the specified one 
(although often a refresh is needed to fully enact the update). The 
framework doesn't look at or care about any bundle metadata when 
updating a bundle, it simply saves the new JAR file to replace the old one.

-> richard

> many thanks
> doron.