SeamFramework.orgCommunity Documentation

Web Beans: Java Contexts and Dependency Injection

The new standard for dependency injection and contextual state management


Note
I. 使用概念上的物件
1. 開始使用 Web Bean
1.1. 您的第一個 Web Bean
1.2. Web Bean 是什麼?
1.2.1. API 類型、綁定類型以及依賴注入
1.2.2. 建置類型(Deployment type)
1.2.3. Scope
1.2.4. Web Bean 名稱和 Unified EL
1.2.5. 攔截器綁定類型
1.3. 哪種物件屬於 Web Bean?
1.3.1. 基本的 Web Bean
1.3.2. 企業級的 Web Bean
1.3.3. Producer method
1.3.4. JMS 端點(endpoints)
2. JSF 網站應用程式範例
3. Web Bean 參照實做
3.1. numberguess 範例
3.2. 轉譯器範例
4. 依賴注入(Dependency injection)
4.1. 綁定標記
4.1.1. member 和綁定標記
4.1.2. 綁定標記的組合
4.1.3. 綁定標記和 producer method
4.1.4. 預設綁定類型
4.2. 建置類型
4.2.1. 啟用 deployment type
4.2.2. Deployment type 優先權
4.2.3. 範例 deployment type
4.3. 修正相依性不足(unsatisfied dependencies)的問題
4.4. 客戶端代理伺服器(Client proxies)
4.5. 透過程式性的搜尋來取得一個 Web Bean
4.6. Lifecycle callback、@Resource@EJB@PersistenceContext
4.7. InjectionPoint 物件
5. Scope 與 context
5.1. Scope type
5.2. 內建 scope
5.3. conversation scope
5.3.1. Conversation demarcation(對話區分)
5.3.2. Conversation propagation(傳播)
5.3.3. Conversation timeout(逾時)
5.4. dependent pseudo-scope
5.4.1. @New 標記
6. Producer method
6.1. producer method 的 scope
6.2. 注入 producer method
6.3. 使用 @New 和 producer method
II. 開發鬆散耦合(loosely-coupled)的程式碼
7. 攔截器(Interceptor)
7.1. 攔截器綁定
7.2. 實做攔截器
7.3. 啟用攔截器
7.4. 與成員綁定的攔截器
7.5. 多重攔截器綁定標記
7.6. 攔截器綁定類型的 inheritance
7.7. 使用 @Interceptors
8. 裝飾器(Decorators)
8.1. Delegate(類別;表示委派)屬性
8.2. 啟用裝飾器
9. 事件(Events)
9.1. 事件觀察器(Event observers)
9.2. 事件產生器(Event producers)
9.3. 動態式地註冊觀察器
9.4. member 的事件綁定
9.5. 多重事件綁定(Multiple event binding)
9.6. 交易觀察器(Transactional observers)
III. 最大程度地使用強類型(strong typing)
10. 主要探討模板(Stereotypes)
10.1. 主要探討模板的預設 scope 和建置類型
10.2. 利用主要探討模板來限制 scope 與 type
10.3. 主要探討模板的攔截器綁定
10.4. 主要探討模板的名稱預設
10.5. 標準主要探討模板
11. 專門化(Specialization)
11.1. 使用 specialization
11.2. Specializarion 的優點
12. 使用 XML 來定義 Web Bean
12.1. 宣告 Web Bean class
12.2. 宣告 Web Bean metadata
12.3. 宣告 Web Bean 成員
12.4. 宣告內嵌式(inline)Web Bean
12.5. 使用 schema
IV. Web Beans 與 Java EE 應用系統
13. Java EE 整合
13.1. 將 Java EE 資源注入 Web Bean 中
13.2. 透過一個 Servlet 來調用 Web Bean
13.3. 透過訊息導向的 Bean 來調用 Web Bean
13.4. JMS 端點
13.5. 封裝和建置
14. 延伸 Web Bean
14.1. Manager 物件
14.2. Bean class
14.3. Context 介面
15. 接下來的步驟
A. 將 Web Bean RI 整合入其它環境中
A.1. Web Beans RI SPI
A.1.1. Web Bean 搜尋
A.1.2. EJB Discovery
A.1.3. @EJB, @PersistenceContext and @Resource resolution
A.1.4. Transaction Services
A.1.5. The application context
A.1.6. Bootstrap and shutdown
A.1.7. JNDI
A.1.8. 資源載入
A.1.9. Servlet injection
A.2. 與 container 的合同