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

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.
主站蜘蛛池模板: 平潭县| 青海省| 鹤庆县| 华池县| 沁水县| 庄河市| 保亭| 北海市| 芜湖县| 灯塔市| 泽普县| 环江| 襄城县| 马关县| 曲松县| 宁强县| 长宁区| 南宫市| 大关县| 宁波市| 石城县| 宜昌市| 孝昌县| 丹寨县| 壤塘县| 南丰县| 博罗县| 咸宁市| 丹东市| 行唐县| 沙田区| 宜黄县| 龙川县| 繁峙县| 扶沟县| 辉县市| 垦利县| 自贡市| 会昌县| 崇义县| 德格县|