Dependency Injection in OSGI environments

后端 未结 6 1235
深忆病人
深忆病人 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 21:51

    I can recommend Bnd and if you use Eclipse IDE sepcially Bndtools as well. With that you can avoid describing DS in XML and use annotations instead. There is a special Reference annotation for DI. This one has also a filter where you can reference only a special subset of services.

提交回复
热议问题