Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

JSR-346 for new CDI 1.1

DZone's Guide to

JSR-346 for new CDI 1.1

· Java Zone ·
Free Resource

Verify, standardize, and correct the Big 4 + more– name, email, phone and global addresses – try our Data Quality APIs now at Melissa Developer Portal!

There is a new Java Specification Request (JSR) with number 346: Contexts and Dependency Injection for JavaTM EE 1.1.

It contains improvements for CDI  1.0, and is led by Red Hat.

CDI might be the most helpful new piece of technology in Java EE 6. If you haven't heard of it or didn't use it before, then try Adam Bien's articles or the documentation of CDI's reference implementation, called Weld, which is actuaaly quite easy to read.

So what are the suggestions for CDI 1.1? Let's look what the JSR says:
  • "Global ordering of interceptors and decorators, as well as global enablement of alternatives [CDI-48]
  • An API for managing built in contexts, allowing the built in implementation of the conversation context to be used outside of JSF [CDI-30]
  • An embedded mode allowing startup outside of a Java EE container [CDI-26]
  • Declarative control over which packages/classes are scanned in a bean archive [CDI-87]
  • Bean declaration at constructor level [CDI-55]
  • Static injection [CDI-51]
  • Inclusion of @Unwraps from Seam Solder [CDI-89]
  • Align with current version of @Inject [CDI-51]
  • Numerous minor enhancements to the Portable Extensions SPI
  • Client controlled contexts allowing for SaaS style multi-tennancy [CDI-103]
  • Better support for CDI in libraries when used in the Java EE platform [CDI-84]
  • Send CDI events for Servlet events [CDI-38]
  • Application lifecycle events [CDI-86]"


The final release of CDI 1.1 is currently scheduled for Q3 2012.

 This post was originally published on thomas-eichberger.blogspot.com.

Developers! Quickly and easily gain access to the tools and information you need! Explore, test and combine our data quality APIs at Melissa Developer Portal – home to tools that save time and boost revenue. Our APIs verify, standardize, and correct the Big 4 + more – name, email, phone and global addresses – to ensure accurate delivery, prevent blacklisting and identify risks in real-time.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}