OSGi bundle resolution [message #21634] |
Tue, 08 April 2003 14:37  |
Eclipse User |
|
|
|
Hello,
I'm looking at the OSGi spec, just as a matter of curiosity and exploration,
and I have the following questions:
- When a bundle is "installed", is there a way to load a resource from
it before it is resolved?
- The spec says that although a bundle is "stopped", it is still
possible for other bundle
to use code from it? Reversely is it possible to use code from a bundle
that is not "started" yet?
- Are the "resolved" events batched (ie if 20 bundles are resolved does
every listener receives
20 events or do they only receive 1 event)?
Best regards,
PaScaL
|
|
|
Re: OSGi bundle resolution [message #22288 is a reply to message #21634] |
Thu, 10 April 2003 10:14  |
Eclipse User |
|
|
|
"Pascal Rapicault" <pascal_rapicault@ca.ibm.com> wrote in message
news:b6v4gp$u99$1@rogue.oti.com...
> Hello,
>
> I'm looking at the OSGi spec, just as a matter of curiosity and
exploration,
> and I have the following questions:
>
> - When a bundle is "installed", is there a way to load a resource from
> it before it is resolved?
A bundle is "installed" and not resolved when some of the packages it needs
are not present or when the instantiation of the activator class failed.
What do you mean exactly by loading resources - loading files or loading
classes? I think both are not possible if it is "installed"
> - The spec says that although a bundle is "stopped", it is still
> possible for other bundle
> to use code from it? Reversely is it possible to use code from a
bundle
> that is not "started" yet?
A bundle can use packages from any other bundle that is resolved or active.
As far as I know, only active bundles can use packages from other bundles.
If a bundle is resolved and tries to load a package from another bundle, the
bundle class loader should fail.
> - Are the "resolved" events batched (ie if 20 bundles are resolved
does
> every listener receives
> 20 events or do they only receive 1 event)?
>
A bundle event listener must receive all bundle events (incl. resolved) that
ocurred while it was registered with the OSGi framework.
> Best regards,
>
> PaScaL
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02829 seconds