У меня есть неудовлетворенный компонент OSGi и ханжество совсем понимаю, почему это такНеудовлетворенный OSGI компонент
Мое определение услуг выглядит следующим образом:
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0"
immediate="true" enabled="true" name="MyService">
<implementation class="com.example.MyService" />
<reference name="HttpService" interface="org.osgi.service.http.HttpService"
cardinality="1..1" policy="dynamic" bind="setHttpService" unbind="unsetHttpService" />
<service>
<provide interface="com.example.MyService" />
</service>
</scr:component>
и в моей OSGI консоли я вижу:
osgi> comp 7
Component[
name = MyService
activate = activate
deactivate = deactivate
modified =
configuration-policy = optional
factory = null
autoenable = true
immediate = true
implementation = com.example.MyService
state = Unsatisfied
properties =
serviceFactory = false
serviceInterface = [com.example.MyService]
references = {
Reference[name = HttpService, interface = org.osgi.service.http.HttpService, policy = dynamic, cardinality = 1..1, target = null, bind = setHttpService, unbind = unsetHttpService]
}
located in bundle = com.example.MyService_1.00.0
]
Dynamic information :
*The component is NOT satisfied
The following references are not satisfied:
Reference[name = HttpService, interface = org.osgi.service.http.HttpService, policy = dynamic, cardinality = 1..1, target = null, bind = setHttpService, unbind = unsetHttpService]
Component configurations :
Configuration properties:
component.name = MyService
component.id = 5
objectClass = String[com.example.MyService]
Instances:
osgi>
Что это значит и как я могу это исправить?
Ничего общего с проблемой. –