0
A
回答
1
你必須使用回調來檢索服務屬性:
@Bind
public void bindService(HelloService hello, Dictionary<String, Object> properties) {
// ...
}
或
@Bind
public void bindService(HelloService hello, Map<String, Object> properties) {
// ...
}
你甚至可以獲取OSGi服務註冊:
@Bind
public void bindService(HelloService hello, ServiceReference<HelloService> reference) {
// ...
}
相關問題
- 1. 如何從Web服務使用者訪問url屬性
- 2. IPojo - @Reference不噴射服務
- 3. iPOJO和服務阻尼
- 4. 訪問服務中的angularjs服務屬性
- 5. 訪問OSGi服務的樣式屬性
- 6. AngularJS服務:無法訪問子屬性
- 7. 從Grails服務訪問hibernate屬性?
- 8. 麪包::板服務B取決於訪問者服務對象
- 9. 如何使用WSO2 GREG中的API訪問服務的屬性?
- 10. Windows服務屬性
- 11. Symfony2從非服務類訪問服務
- 12. 給web服務訪問windows服務
- 13. windows服務無法訪問web服務
- 14. 訪問wcf服務
- 15. doWithDynamicMethods訪問服務
- 16. 訪問angularjs服務
- 17. 訪問Web服務
- 18. 訪問服務層
- 19. 角:訪問服務
- 20. 使用WCF服務訪問承載WCF服務的Windows服務中的數據
- 21. 是否可以使用iPOJO將服務綁定到多個消費者?
- 22. .NET XML Web服務,使用類無法訪問Web服務類
- 23. 使用MAPI從服務訪問Exchange服務器
- 24. 將屬性應用於WCF服務方法以訪問Cookies
- 25. 使用ICollection的屬性與WCF服務
- 26. Couchbase服務器的訪問安全性
- 27. Ria服務和導航屬性問題
- 28. 使用Web服務訪問TFS
- 29. 訪問各種Web服務使用Javascript
- 30. 使用上下文訪問Android服務
謝謝,這是很酷另外,如果財產已被更改或不我能察覺:@Modified 公共無效modifiedService(HelloService的招呼,地圖<字符串,對象>屬性){// ... } – naweed