ok, so there's no "transitive dependency" thing like Maven has,
basically I have to reference all the bundles I need.

On 2/8/07, Richard S. Hall <[EMAIL PROTECTED]> wrote:
On Feb 8, 2007, at 6:45 PM, Carlos Sanchez wrote:

> I know about visibility:=reexport with Require-Bundle, but how can I
> reexport packages imported with Import-Package?

You cannot do so.

This issue is a little confusing, especially given the terminology that
was adopted, but even require-bundle with "reexport" does not re-export
the packages as I think you are imagining.

Consider A requires B requires C. If B requires C with "reexport" then
A will see C's packages too. If B requires C privately, then A will not
see C's packages.

The only form of re-export available in OSGi R4 is if a bundle requires
several bundles and then declares an Export-Package for some of the
packages in the required bundles. This use case was only intended to be
used for cases where you wanted to split a package into multiple
bundles (using mandatory directives to avoid accidental importation)
and then the split packages could be recombined into a whole package
using require-bundle + Export-Package.

-> richard

>
> --
> I could give you my word as a Spaniard.
> No good. I've known too many Spaniards.
>                             -- The Princess Bride




--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                            -- The Princess Bride

Reply via email to