ok, so the framework is the one to take care of resolving all packages needed. Thanks!
On 2/9/07, Felix Meschberger <[EMAIL PROTECTED]> wrote:
Hi On 2/9/07, Carlos Sanchez <[EMAIL PROTECTED]> wrote: > > ok, so there's no "transitive dependency" thing like Maven has, > basically I have to reference all the bundles I need. Maybe there is some confusion here... By listing Java packages your bundle needs in the Import-Package header you place an order to the framework for these packages and have the framework resolve the bundles providing those packages in their Export-Package headers. So, the nice thing here is, that you do not need to care as much for finding the right libraries/bundles as you do in Maven, where you declare the providers of the packages and not the packages themselves. Consequently, there is no such thing as transitive imports for packages because either your bundle needs a package, in which case it is imported, or your bundle does not need it and then you don't care. And the list of packages required by a bundle may be automatically generated by the BND tool. Hope this helps. Regards Felix 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 >
-- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride