真正對產品進行客製化時,我們必須將上述的概念套用至專案。
首先設定好我們的 DI Container (使用 Spring 為例)
再來就可以透過呼叫 DI Container 來取得該實作的類別
如同我在前言所說,在客製時會遇到以下兩種情況:
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.
評論