Dependency Injection in OSGI environments

后端 未结 6 1244
深忆病人
深忆病人 2021-01-30 21:24

First some background:

I\'m working on some webapp prototype code based on Apache Sling which is OSGI based and runs on Apache Felix. I\'m still relatively new to OSGI

6条回答
  •  执念已碎
    2021-01-30 22:06

    I have some experience in building applications using Aries Blueprint. It has some very nice features regarding OSGi services and config admin support.

    If you search for some great examples have a look at the code of Apache Karaf which uses blueprint for all of its wiring. See http://svn.apache.org/repos/asf/karaf/

    I also have some tutortials for Blueprint and Apache Karaf on my website: http://www.liquid-reality.de/display/liquid/Karaf+Tutorials

    In your environment with the embedded felix it will be a bit different as you do not have the management features of Karaf but you simply need to install the same bundles and it should work nicely.

提交回复
热议问题