- 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.
推薦閱讀
- Spring Boot 2實戰之旅
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- Three.js開發指南:基于WebGL和HTML5在網頁上渲染3D圖形和動畫(原書第3版)
- DevOps Automation Cookbook
- Scratch真好玩:教小孩學編程
- 人人都懂設計模式:從生活中領悟設計模式(Python實現)
- Mastering Apache Spark 2.x(Second Edition)
- C#應用程序設計教程
- 第一行代碼 C語言(視頻講解版)
- Test-Driven Machine Learning
- Visual Basic程序設計習題與上機實踐
- Mastering Python Design Patterns
- 區塊鏈國產化實踐指南:基于Fabric 2.0
- Apache Solr PHP Integration
- JavaEE架構與程序設計