官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 鹿泉市| 峨眉山市| 鹤庆县| 辉县市| 霍州市| 古浪县| 甘南县| 塔河县| 文水县| 陕西省| 北碚区| 公安县| 阳谷县| 会宁县| 吉木萨尔县| 庆阳市| 金湖县| 阜城县| 东乡族自治县| 德钦县| 万荣县| 抚松县| 奈曼旗| 海丰县| 砀山县| 句容市| 白朗县| 遂溪县| 临夏市| 渝北区| 弥渡县| 吕梁市| 昭通市| 霍州市| 陕西省| 佳木斯市| 离岛区| 阿城市| 巴东县| 贞丰县| 丹东市|