2008/12/1 chouaieb jalloul <[EMAIL PROTECTED]> > > hi, > I'd like to know what are the differences between sping-osgi and > peaberry and what are the limitations of each one.
Spring-OSGi (now called Spring-DM) basically applies Spring concepts such as application contexts, beans, etc. to the world of OSGi. Each bundle can have its own Spring application context, can inject services into beans and export beans as services. Spring-DM also provides a few resource abstractions for OSGi. So Spring-DM is tied to both Spring and OSGi, but provides a complete model. [ for the authorized explanation see http://www.springsource.org/osgi ] peaberry has a different scope - its primary goal is to inject services from service registries. You use the fluent API in your Guice module to create service proxy providers that dynamically delegate to a service registry. While it comes with an OSGI registry implementation, you can actually plug in any registry that can be mapped to the abstract API - for example, next on the list is the Eclipse registry. so the main difference is Spring-DM provides a complete component model, whereas peaberry concentrates on injection of services via proxies (exporting, aka outjection is also being investigated) - you could easily write a component model on top of peaberry, but the core peaberry code will remain very small peaberry is not tied to OSGi at all, unlike Spring-DM - actually you can even use peaberry outside of Guice because the builder API can construct service providers that don't need an injector (normally it needs one to lookup various types and instances at injection time) - you just call "get()" to create a proxy. I'd like to think that peaberry's service proxy is more performant, but I don't have any statistics to back that up :) You can also decorate service proxies. BTW, if you would like to hear more about peaberry, I've submitted a talk for EclipseCon: http://www.eclipsecon.org/submissions/2009/view_talk.php?id=315 feel free to comment there and let me know what details you're interested in thanks > -- Cheers, Stuart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-guice?hl=en -~----------~----~----~----~------~----~------~--~---
