OSGi: Does Blueprint replace Declarative Services?

后端 未结 4 1366
遥遥无期
遥遥无期 2021-02-07 00:41

The new R4.2 spec for OSGi describes the Blueprint service, for dependency injection and service wiring.

Does Blueprint replace Declarative Services (which is still part

4条回答
  •  余生分开走
    2021-02-07 01:31

    Another issue is that blueprint services -as far as I know- are all present in one container, the blueprint container- while declarative services are made available in the bundles that reference them. Especially with Equinox this results in different behavior. DS should be used over blueprint when you want to adhere to the strict class-loading approach that equinox advocates.

提交回复
热议问题