簡體   English   中英

在 Eclipse RCP 項目中使用 Spring 應用程序上下文的推薦方法

[英]A recommended way to use Spring application context within Eclipse RCP project

在 Eclipse RCP 項目中使用 Spring 應用程序上下文的推薦方法是什么。

我有一個基於 Swing 的應用程序,它由 Spring 及其配置連接在一起。 What would be the best strategy for these two, without too many conflicts between them (I'm just beginning with Eclipse RCP, and I am mostly worried about how similarly eclipse plugin.xml looks in comparison with xxx-context.xml.

謝謝你的幫助。

我認為在 Eclipse RCP 項目中使用 Spring 的最佳方法是將其與 Spring 動態模塊一起使用。 我在插件的不同上下文中定義 bean,並將其中一些導出為 osgi 服務,以允許來自其他插件的 bean 在依賴注入中使用它們。 我還實現了某種 ServiceAccessor(osgi 服務訪問器上的單一包裝器),它向用戶顯示“等待服務注冊”對話框,直到注冊所有必要的服務。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM