Yesterday Gavin King submitted the JSR 299
(Contexts and dependency injection for the Java EE platform)
To JCP. Compared with the previous draft proposal, there are four major revisions:
- Comprehensive use of JSR 330 on dependency injection annotations (annotation)
- In the deployment type, @ alternative is used to replace the original @ production/@ Standard
- Removed the ability to dynamically register event observers
- Inject EJB session beans Constructor
From the user's perspective, the biggest change is that the bean constructor, initialization method, and field can be injected with the @ inject annotation. For some minor modifications (for example, @ named is also used as a limiter), see the current version of JSR 299 draft. In addition, the JSR 330 vote should have passed the full vote.
PS. JSR 330 voting results:
JSR #330.
Dependency injection for Java
Public Review ballot
These are the final results of the public review ballot for JSR #330.
The Executive Committee for Se/EE
Has approved this ballot.
Votes
SE/EE
Apache Software Foundation |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Icon legend |
Yes |
|
No |
|
Abstain |
|
Not voted |
|
|