|
Re: Put API/SPI/implementation into separate bundles?: msg#00012java.osgi.devel
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. As with all API decision the designer needs to put themselves in the clients shoes to decide the correct grouping of classes. From my view point I try to ensure where ever possible that API bundles should be dependent only on other API bundles. This limits the possible spread of the graph beyond the classes need to express the core semantics of the API. The pain comes when trying to start client code that depends on an api and you end up in the cyclical process of resolving the next bundle required to start. In newton where we're dealing with remote deployment of bundles this also has a performance aspect as client code should not depend on downloading server implementations in order to function. Possible analogies can be made with physical phenomena such as center of mass and entanglement. You don't want to have to drag down the weight of an entire planet just to switch a light switch etc. So in summary my advice would be to separate impl and api but do so in such a way as to inherit apis and group related apis for semantic coherency - simple :) Regards, Dave (shameless link to newton) http://newton.codecauldron.org David Savage wrote: Jeff McAffer wrote: _______________________________________________________________________ Paremus Limited. Registered in England No. 4181472 Registered Office: 22-24 Broad Street, Wokingham, Berks RG40 1BA Postal Address: 107-111 Fleet Street, London, EC4A 2AB The information transmitted is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _______________________________________________________________________
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Put API/SPI/implementation into separate bundles?, David Savage |
|---|---|
| Next by Date: | Re: Put API/SPI/implementation into separate bundles?, Peter Kriens |
| Previous by Thread: | Re: Put API/SPI/implementation into separate bundles?, David Savage |
| Next by Thread: | Re: Put API/SPI/implementation into separate bundles?, Peter Kriens |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |