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

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.
主站蜘蛛池模板: 长寿区| 汝南县| 新疆| 邓州市| 金川县| 璧山县| 石渠县| 灵川县| 沙坪坝区| 新邵县| 惠安县| 鹰潭市| 鸡东县| 盐池县| 内江市| 乡城县| 惠来县| 安远县| 宁国市| 深州市| 太和县| 邯郸县| 宁乡县| 长白| 寻乌县| 鹤峰县| 肇源县| 北碚区| 宣武区| 新兴县| 上栗县| 连州市| 拉萨市| 雷州市| 西藏| 灌云县| 鹤岗市| 永泰县| 醴陵市| 扎赉特旗| 祁东县|