I don't think the behavior is specified by the spec.
When a bundle export / import the same package, which is the case for
b1, the framework is free to choose that the bundle will either export
*or* import the package.
If the package is exported, then b2 should not have to be resolved,
but if the framework decides to import the package, b2 will have to.
The important point is that afaik, you can't be sure.

On Fri, Sep 25, 2009 at 11:08, Sahoo <[email protected]> wrote:
> Can anyone tell what is the correct behavior in the scenario described
> below?
>
> Q1:
> Bundle b1
> Export-Package: p; uses:=q; version=1.0, q; version=1.0
> Import-Package: p; q; version=1.0
>
> Bundle b2
> Export-Package: q; version=1.0
> Import-Package: q; version=1.0
>
> When b1 is being attempted to resolve, b2 is in INSTALLED state. Which
> bundle will bundle b1 be wired to for package q? Does it depend on the order
> of installation of bundles?
>
> Q2:
> What happens if I change bundle b1 to have a DynamicImport-Package for
> package q?
>
> My objective is to not cause b2 to be resolved unnecessarily, hence the
> question.
>
> Thanks,
> Sahoo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to