|
|
Re: Other OSGi questions [message #23638 is a reply to message #23338] |
Sat, 26 April 2003 14:27 |
Eclipse User |
|
|
|
Originally posted by: Peter.Kriens.aQute.se
Pascal Rapicault wrote:
> - What happens if a bundle is leaving and the service it provides are not
> unregistered?
> It seems to me that the framework automatically "unregister" it, isn't
> it?
Yes. After the bundle's stop() method is called, the framework
automatically unregisters any remaining services.
> - Bundle A is active and imports package foo, Bundle B exports package foo.
> So A uses instances from B.
> 1st question - What happens if a Bundle C is being installed and exports
> foo?
The framework already has an import for foo so it will not do anything.
> 2nd question - What happens if B is being updated?
After update - nothing is changed. But normally after one or more
updates, refreshPackages() is called and this will resolve all
dependencies again. Depending on versions, C might be choosen or B
again. (Bundles that depend on this package, like A, will be restarted
in that case).
Kind regards,
Peter Kriens
>
> Thank you
>
> PaScaL
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02817 seconds