Re: [osgi-dev] Put API/SPI/implementation into separate bundles?

2008-09-25 Thread Yvan Royon
On Wed, Sep 24, 2008 at 17:53, Stuart McCulloch [EMAIL PROTECTED] wrote: 2008/9/24 Yvan Royon [EMAIL PROTECTED] The way I see it, an OSGi bundle tries to fit both granularities at the same time. Thus, it is up to the packager to choose one or the other, or a little of both, and it can be

Re: [osgi-dev] Put API/SPI/implementation into separate bundles?

2008-09-24 Thread Yvan Royon
Sorry to bump a 4 month old thread... On Mon, Jun 9, 2008 at 09:18, Peter Kriens [EMAIL PROTECTED] wrote: The whole problem with modularity is the -granularity-. If you make the granularity too small you end up with too many artifacts to comprehend. If you make it too large you do not get the

Re: [osgi-dev] Put API/SPI/implementation into separate bundles?

2008-09-24 Thread Stuart McCulloch
2008/9/24 Yvan Royon [EMAIL PROTECTED] Sorry to bump a 4 month old thread... On Mon, Jun 9, 2008 at 09:18, Peter Kriens [EMAIL PROTECTED] wrote: The whole problem with modularity is the -granularity-. If you make the granularity too small you end up with too many artifacts to comprehend.

Re: [osgi-dev] Put API/SPI/implementation into separate bundles?

2008-09-24 Thread Jeff McAffer
Or even something like Equinox's p2 support. It allows you to publish bundles and collections of bundles and manage dependencies on arbitrary capabilities and requirements. To a certain degree you can do similar things with OBR it is just harder to create the metadata and the capability

Re: [osgi-dev] Put API/SPI/implementation into separate bundles?

2008-06-03 Thread David Savage
This is certainly an option if you are the author of both the client and impl but for cases where there is a third party library with an api you want to use it seems a little odd to include the third party lib in all the client bundles? Definitely more than one way to solve this which is

Re: [osgi-dev] Put API/SPI/implementation into separate bundles?

2008-06-02 Thread David Savage
To expand on this train of thought as it's getting on towards of end of day here in the UK so I feel the urge to talk to the wall ;) The consideration when building bundles is how best to weight the distribution of code between bundles is which code belongs together from a client perspective.

Re: [osgi-dev] Put API/SPI/implementation into separate bundles?

2008-06-02 Thread Peter Kriens
Hmm. I like implementations that carry their interfaces. OSGi can handle multiple implementations that carry the same API code. Refreshing might then sometimes restart a bundle that could have been prevented but I fail to see that as a big drawback. I think it is crucial that bundles run out

Re: [osgi-dev] Put API/SPI/implementation into separate bundles?

2008-06-02 Thread Mirko Jahn
Concerning this... Huh? If only com.bar is present than these dependencies exist anyway? A: Import-Package: com.foo B: Export-Package: com.foo Import-Package: com.bar, com.baz A will resolve to B. B has dependencies that are required to implement com.foo. If I take implementation C: