- Developing Middleware in Java EE 8
- Abdalla Mahmoud
- 149字
- 2021-07-23 19:24:32
What's new in CDI 2.0?
Before version 2.0, the CDI API was limited only to the scope of Java EE. Now and with CDI 2.0, the community did great in extending the scope of CDI into Java SE. Yes, like Spring and Google Guice, you can now use CDI in nearly any Java application.
If you are familiar enough with CDI, let's take a look at the new features that were added in CDI 2.0:
- CDI support in Java SE
- Ability to order events
- Asynchronous event
- Configurators for major SPI elements
- Possibility to configure or veto observer methods
- Add built-in annotation literals
- Make it possible to apply interceptors on producers
- Alignment on Java 8 features (streams, lambdas, repeating qualifiers)
If you are not familiar with the CDI API, don't worry. Most of the terms mentioned in this section are going to be discussed throughout the rest of the chapter.
推薦閱讀
- Instant Zepto.js
- Mastering OpenCV 4
- 網店設計看這本就夠了
- ASP.NET 3.5程序設計與項目實踐
- SAP BusinessObjects Dashboards 4.1 Cookbook
- 程序員修煉之道:通向務實的最高境界(第2版)
- 軟件品質之完美管理:實戰經典
- Elasticsearch Blueprints
- Functional Python Programming
- jQuery Mobile Web Development Essentials(Second Edition)
- Java程序設計基礎教程
- 深度剖析ApacheDubbo核心技術內幕
- iOS應用逆向工程:分析與實戰
- Instant Buildroot
- HTML 5+CSS 3+jQuery Mobile移動網站與APP開發實戰