JBoss Weld CDI for Java Platform
Ken Finnigan
- 出版商: Packt Publishing
- 出版日期: 2013-06-14
- 售價: $1,440
- 貴賓價: 9.5 折 $1,368
- 語言: 英文
- 頁數: 122
- 裝訂: Paperback
- ISBN: 1782160183
- ISBN-13: 9781782160182
-
相關分類:
Java 程式語言、Java 相關技術
海外代購書籍(需單獨結帳)
相關主題
商品描述
Learn CDI concepts and develop modern web applications using JBoss Weld
Overview
- Learn about dependency injection with CDI
- Install JBoss Weld in your favorite container
- Develop your own extension to CDI
- Decouple code with CDI events
- Communicate between CDI beans and AngularJS
In Detail
CDI simplifies dependency injection for modern application developers by taking advantage of Java annotations and moving away from complex XML, while at the same time providing an extensible and powerful programming model.
"JBoss Weld CDI for Java Platform" is a practical guide to CDI's dependency injection concepts using clear and easy-to-follow examples. This will help you take advantage of the power behind CDI, as well as providing a firm understanding of how to use it within your applications.
"JBoss Weld CDI for Java Platform" covers all the major aspects of CDI, breaking it down into understandable pieces. This book will take you through many examples of how these concepts can be utilized, helping you get up and running quickly and painlessly.
"JBoss Weld CDI for Java Platform" gives you an insight into the different scopes provided by CDI and the use cases for which each has been designed. You will learn everything about dependency injection, scopes, events, producers, and more from JBoss Weld CDI, as well as how producers can create new beans for consumption within your application. You will also learn how to build a real world application with CDI using JSF and AngularJS for different web interfaces.
What you will learn from this book
- Install JBoss Weld in an application server
- Learn CDI dependency injection type lookup rules
- Create dynamic beans with producers
- Fire and observe events to decouple beans
- Use interceptors and decorators for cross-cutting concerns
- Understand the sequence of the JBoss Weld container lifecycle
- Create your own CDI portable extension
- Access CDI beans from AngularJS
- Learn how scopes and contexts work and what CDI provides
Approach
This book is a mini tutorial with plenty of code examples and strategies to give you numerous options when building your own applications.
Who this book is written for
"JBoss Weld CDI for Java Platform" is written for developers who are new to dependency injection. A rudimentary knowledge of Java is required.
商品描述(中文翻譯)
學習 CDI 概念並使用 JBoss Weld 開發現代網頁應用程式
概述
- 了解 CDI 的依賴注入
- 在您喜愛的容器中安裝 JBoss Weld
- 開發您自己的 CDI 擴展
- 使用 CDI 事件解耦代碼
- 在 CDI beans 和 AngularJS 之間進行通信
詳細內容
CDI 透過利用 Java 註解並擺脫複雜的 XML,簡化了現代應用程式開發者的依賴注入,同時提供了一個可擴展且強大的程式設計模型。
《JBoss Weld CDI for Java Platform》是一本實用指南,使用清晰且易於理解的範例介紹 CDI 的依賴注入概念。這將幫助您充分利用 CDI 的強大功能,並提供對如何在應用程式中使用它的堅實理解。
《JBoss Weld CDI for Java Platform》涵蓋了 CDI 的所有主要方面,將其分解為易於理解的部分。本書將帶您通過許多範例,展示這些概念如何被利用,幫助您快速且輕鬆地上手。
《JBoss Weld CDI for Java Platform》讓您深入了解 CDI 提供的不同範疇及其設計的使用案例。您將學習有關依賴注入、範疇、事件、生產者等的所有知識,並了解生產者如何為您的應用程式創建新的 beans。您還將學習如何使用 JSF 和 AngularJS 建立一個真實世界的應用程式,以實現不同的網頁介面。
您將從本書中學到的內容
- 在應用伺服器中安裝 JBoss Weld
- 了解 CDI 依賴注入類型查找規則
- 使用生產者創建動態 beans
- 觸發和觀察事件以解耦 beans
- 使用攔截器和裝飾器處理橫切關注點
- 理解 JBoss Weld 容器生命週期的順序
- 創建您自己的 CDI 可攜式擴展
- 從 AngularJS 訪問 CDI beans
- 了解範疇和上下文的運作方式以及 CDI 提供的內容
方法
本書是一個迷你教程,包含大量的程式碼範例和策略,為您在構建自己的應用程式時提供多種選擇。
本書的讀者對象
《JBoss Weld CDI for Java Platform》是為對依賴注入不熟悉的開發者撰寫的。需要具備基本的 Java 知識。