A JBoss Project
Red Hat
CDI tagcloud

Weld is the reference implementation of CDI: Contexts and Dependency Injection for the Java EE Platform which is the Java standard for dependency injection and contextual lifecycle management and one of the most important and popular parts of the Java EE platform.

Weld is integrated into many Java EE application servers such as WildFly, JBoss Enterprise Application Platform, GlassFish, Oracle WebLogic and others. Weld can also be used in a Servlet-only environment (Tomcat, Jetty) or plain Java SE environment.

Try Weld Today

To use Weld today, download the WildFly server (formelly JBoss AS) and add the following code to the pom.xml file of your application:

<dependency>
   <groupId>javax.enterprise</groupId>
   <artifactId>cdi-api</artifactId>
   <version>1.2</version>
   <scope>provided</scope>
</dependency>

For alternative ways of using Weld, see the download section or the reference documentation.

Weld Book

The latest book on Weld is now available:

News

  • Weld 3.0.0.Alpha8

    2015-4-21: Jozef Hartinger

    Weld 3.0.0.Alpha8 has been released. The main change is the enhanced API for using Weld in Java SE environment. In addition, this release comes with several weld-probe improvements. Enhanced API for Weld SE Weld has provided support for the Java SE environment for a long time with the weld-se module. The API provides an...

    Read more »
  • Weld 3.0.0.Alpha5

    2015-2-25: Jozef Hartinger

    Weld 3.0.0.Alpha5, the latest release in the series of CDI 2.0 prototypes, has been released. The highlights of the release include new Bean builder API and many improvements to Weld Probe. Bean Builder API The common way for frameworks and libraries to expose their API to applications via CDI is by using producer...

    Read more »
  • Weld 3.0.0.Alpha4

    2015-2-5: Jozef Hartinger

    Here we are again with the next Alpha release of Weld 3. This time there are no additional CDI 2.0 previews. Instead, this release contains multiple performance improvements, enables @Asynchronous calls to be implemented simply with CDI interceptors and most importantly, it comes with weld-probe. Weld Probe Why isn’t my field injected? Why isn’t my interceptor triggered? What...

    Read more »