Weld 2.3.1.Final 发布,主要更新如下: Private producer, disposer and observer methods should be intercepted (WELD-2043) Specializing bean - remove @Default qualifier unless explicitly declared (WELD-2046) Weld SE Fix the development mode enablement Allow to pass a ResourceLoader to be used for scanning (WELD-2044) Allow to skip the registration of a shutdown hook (WELD-2051) Weld Probe now supports monitoring of container lifecycle events during bootstrap (see also supported configuration properties) 更多内容请看: [ CDI 1.2 API ] [ Download ] [ Documentation ] [ Release notes ] Weld 是一个实现了 JSR-299 的框架。 JSR 299 是 Java EE 6 中非常重要的部分,提供了如下功能: 1. 类型安全的依赖注入 2. 注入对象的上下文生存周期管理 3. 事件提醒模型 4. 绑定拦截器通过用户自定义的注解(Annotation) 5. 类型安全的装饰器 6. 为整合第三方框架提供了完整的 SPI 支持 7. 与 JSF,Servlet / JSP 进行了整合 8. 对 JSF 提供长会话(Conversation)上下文支持 最棒的是这些功能都是基于一个清晰、简单、统一的编程模型,其强调了两个最有价值的概念:类型安全,松耦合。JSR 299 不使用字符串或者 XML 绑定组件、事件、拦截器与装饰器。取而代之的是使用 Java 类型系统以及用户自定义的“绑定注解(binding annotations)。 Weld 2.3.1.Final 发布,CDI 规范实现下载地址