跳转到主要内容

Jakarta Contexts and Dependency Injection 5.0 (Under development)

Release for Jakarta EE 12

Jakarta Contexts Dependency Injection specifies a means for obtaining objects in such a way as to maximize reusability, testability and maintainability compared to traditional approaches such as constructors, factories, and service locators (e.g., JNDI).

A complete list of issues and pull requests for this version can be viewed using CDI 5.0 Milestone and CDI TCK 5.0 Milestone in their respective GitHub repositories.

New features, enhancements or additions

Currently suggested topics includes:

  • Increase minimal Java version to 17, possibly to 21
  • Introduction a way to eagerly initialize CDI beans
  • Allow registering BuildCompatibleExtension programmatically in CDI SE
  • Define how InjectionPoint works when a bean is obtained via CDI.current()
  • Restrict how synthetic beans registered via BuildCompatibleExtension declare their injection points
  • Introduction of tests for unproxyability of sealed classes
  • Introduction of tests for records in the TCK lang model
  • Multiple small specification clarifications

Removals, deprecations or backwards incompatible changes

  • Removal of SecurityManager usage and references
  • Removal of deprecated methods from BeanManager API
    • These are method related to EL and are replaced in ElAwareBeanManager since CDI 4.1

Minimum Java SE Version

Java SE 17 or higher

Details

Compatible Implementations

Ballots

Release Review

The Specification Committee Ballot is TBD.

The ballot was run in the jakarta.ee-spec mailing list

Plan Review

This Specification Project’s Plan Review will be covered by the CDI 5.0 Plan Review.

The Specification Committee Ballot concluded successfully on 2025-03-24 with the following results.

Representative Representative for: Vote
Kenji Kazumura Fujitsu +1
Emily Jiang, Tom Watson IBM +1
Ed Bratt, Dmitry Kornilov Oracle +1
Andrew Pielage, Petr Aubrecht Payara +1
David Blevins, Jean-Louis Monteiro Tomitribe no vote
Ivar Grimstad EE4J PMC +1
Marcelo Ancelmo, Abraham Marin-Perez Participant Members +1
Werner Keil Committer Members +1
Jun Qian Enterprise Members no vote
Zhai Luchao Enterprise Members +1
Total 8

Non-binding Votes

Representative Representative for: Vote
Angelo Rubini Community +1
Total 1

The ballot was run on the jakarta.ee-spec mailing list

返回顶部