Today, Red Hat submitted the final draft of JSR-299
To JCP. JSR-299 specification (CDI) (contexts and dependency injection, context and dependency injection), at the same time, the reference implementation of this specification (weld 1.0)
) And TCK (compatibility test suite) have also been completed. To view the javadoc of this specification, click here
.
This specification defines a series of complementary services to improve applicationsCode. The following are some features of this specification:
- Binding of a stateful object to its lifecycle context, and the context can be expanded
- A set of top-notch type security dependency injection mechanisms. developers can freely choose the dependencies to be injected during development or deployment without text configuration.
- Support for Java EE modularization and Java EE component architecture-the modular structure of Java EE applications is very important for dependency parsing of Java EE components.
- Integrated with a Unified Expression Language (EL), context-managed objects can be directly used on any JSF or JSP page
- The injected objects can be decorated.
- You can associate an object with an interceptor by binding a type-safe interceptor.
- Event Notification Model
- A conversation context is added to the three web contexts defined in the servlets specification)
- Service-provided interface (SPI) allows containers to perform portable expansion and integration
For more details, see here
.