开发者

What problem does Peaberry for Guice solve?

开发者 https://www.devze.com 2022-12-21 04:46 出处:网络
I understand the problem that OSGI solved thanks to this question.... What does OSGi solve? And I am already convinved that Guice is amazing so I\'m curious what this OSGI integration for Guice know

I understand the problem that OSGI solved thanks to this question....

What does OSGi solve?

And I am already convinved that Guice is amazing so I'm curious what this OSGI integration for Guice known as "peaberry" 开发者_高级运维is supposed to do, it seems to be popping up everywhere, even in Maven 3 presentations.

http://code.google.com/p/peaberry/


It basically allows you to provide and consume OSGi services by binding this into your Guice modules. You could use plain Guice without Peaberry inside OSGi, but it's much easier to use Peaberry for this.

I myself prefer to use Peaberry with it's activation extensions so that I do not need any BundleActivator code in my bundles. This is very similar to be using Spring Dynamic Modules, except that it's all java and typesafe.


It extends Guice to allow injection of OSGi services.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号