Weld

Weld is the reference implementation of CDI (Contexts and Dependency Injection), a Commonhaus project providing the Jakarta EE standard for dependency injection and contextual lifecycle management in Java applications.

Weld is integrated into WildFly, Eclipse GlassFish, and Open Liberty application servers. It can also be used with servlet containers like Apache Tomcat and Eclipse Jetty, or in standalone Java SE applications.

Key Highlights

  • Reference implementation of Jakarta CDI
  • Integrated in WildFly, GlassFish, and Open Liberty
  • Portable to Tomcat and Jetty servlet containers
  • Standalone Java SE support with no container required
  • CDI Lite Extension Translator for Build Compatible Extensions
  • JUnit 5 extensions for CDI testing
  • Part of the Commonhaus Foundation
  • OSGi bundle support

 

Latest News

Weld 7.0.0.Beta1

Weld Core 7.0.0.Beta1 and Weld API 7.0.Beta1 have landed in Maven Central. This is a feature complete implementation of Jakarta CDI 5.0.Beta1! Since the Alpha1 release, the remaining CDI 5.0 features have been implemented (WELD-2835, WELD-2836): @Eager annotation for eager...

Weld 5.1.7.Final

Weld 5.1.7.Final has landed in Central, let’s take a look at what’s been changed: Observable Startup and Shutdown events for web modules are now fired within a synchronized block, similarly to @Initialized events for application scope (WELD-2827) Weld SE annotated reflection discovery...

Weld 6.0.4.Final

New minor bugfix version of Weld 6 has landed in Central - say hello to Weld 6.0.4.Final. There is only a handful on notable changes: Observable Startup and Shutdown events for web modules are now fired within a synchronized block, similarly to @Initialized events for application scope (WELD...

Weld 7.0.0.Alpha1

First release of Weld 7, a CDI 5.0 compatible implementation, has landed in Central. Look for Weld Core 7.0.0.Alpha1 and Weld API 7.0.Alpha4! What’s new in this CDI version? First of all, starting with CDI 5.0.Alpha3 (released after M1), the...

Weld 5.1.6.Final

Weld 5.1.6.Final is now headed towards Maven Central with a tiny fix for potential memory leak. There was a very specific scenario possibly leading to a memory leak due to caching mismatch. Note that this only occured if the following conditions were met: Having a producer using...

Weld 6.0.3.Final

Weld 6.0.3.Final release is now available in Maven Central. There are only two fixes to mention here: Added validation for interceptor classes declaring multiple methods for the same interception type (WELD-2814) This is a fail-fast(er) mechanism for users; otherwise the behavior is mandated by...