The reference implementation of Jakarta CDI
open sourceApache-2.0free
Weld is the reference implementation of Jakarta CDI (Contexts and Dependency Injection), the Jakarta EE standard for dependency injection and contextual lifecycle management in Java. It is built into the WildFly, Eclipse GlassFish and Open Liberty application servers, runs in servlet containers such as Apache Tomcat and Eclipse Jetty, and works standalone in Java SE with no container. It also has JUnit extensions for testing CDI beans and OSGi bundle support, and is a Commonhaus Foundation project.
Problems it solves
- use standard Jakarta dependency injection in a plain Java SE app without an application server
- add CDI beans and scopes to a web app running on Tomcat or Jetty
- test my CDI beans in a real container from JUnit
Features
- reference implementation of Jakarta CDI
- built into WildFly, GlassFish and Open Liberty
- runs in Tomcat and Jetty
- standalone Java SE support
- CDI Lite extension translator for Build Compatible Extensions
- JUnit extensions for CDI testing
- OSGi bundle support
Alternatives
The same job
These do what Weld does.