what is the difference between <osgi:reference> and <osgi:service> in spring DM

StackOverflow https://stackoverflow.com/questions/9052065

  •  20-04-2021
  •  | 
  •  

Вопрос

what is the difference between <osgi:reference> and <osgi:service> in the xml config file of spring DM.

Это было полезно?

Решение

<osgi:reference> can be used to get a reference to existing OSGi service so your bean can use it.

<osgi:service> can be used to export a bean as an OSGi service so it can be used by others.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top