On 1/3/11 13:54, Michael Köndling wrote:
H. Cervantes and R.S. Hall write in Beanome: A Component Model for the
OSGi Framework
<http://www.humbertocervantes.net/papers/VIVIAN2002.pdf> that there
are three types of dependencies in OSGi:
Bundle-to-package
Bundle-to-service
Service-to-service
I understand that the article was written in 2002 (prior to DS).
Bundle-to-package dependencies can (or have to) be expressed with
Import-Package. Bundle-to-service dependencies can also be expressed
through service components with DS.
But what about Service-to-service dependencies. Would it be correct to
say that they are also covered by DS?
Yes and no. DS only supports component-to-service dependencies, but this
is sufficient to implement a service-to-service dependency, but there is
no direct support for it.
For example, the whole point of a service-to-service dependency is that
the dependency is defined in the service contract, which means that the
provider *must* have the service dependency, but DS would not enforce this.
I think the only component framework that supports such a concept is iPOJO.
-> richard
Greetings,
Michael
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev