I'm very pleased to say that we have released the first beta of Weld 1.1.0, the reference implementation of JSR-299: Contexts and Dependency Injection for Java EE. It's based on the CDI 1.0 API. You can find direct download links at the bottom of this post or you can pull the artifacts from the JBoss Maven Repository.
Highlights from this release are:
- Ability to exclude classes from scanning and deployment as beans by Weld. You can configure this in beans.xml for the bean archive you are deploying:
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:weld="http://jboss.org/schema/weld/beans" xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd http://jboss.org/schema/weld/beans http://jboss.org/schema/weld/beans_1_1.xsd"> <weld:scan> <!-- Don't include GWT support if GWT is not installed --> <weld:exclude name="com.acme.gwt.**"> <weld:if-class-available name="!com.google.GWT"/> </weld:exclude> </weld:scan> </beans>
- The new Pastecode example, which shows off many of the new EJB 3.1 features in use with Weld
- around 60 bug fixes
- Some improvements to error reporting (with a lot more planned for Weld 1.1.0.Beta2)
- Unsafe instantiators (Nicklas will blog about this soon!)
- A new proxy layer (that doesn't suffer from the memory leaks that Javassist has)
- Improvements in memory usage, with more planned for Beta2
A couple of weeks back, we released 1.0.2.CR2 of the CDI TCK as well - you can find the links for it below :-)
Thanks go to David Allen, Marius Bogoevici, Stuart Douglas, Martin Gencur, Jozef Hartinger, Nicklas Karlsson, Aslak Knutsen, Peter Lenyi, Matija Mazi, Pete Royle for their hard work on this release!
JBoss Tools
JBoss Tools 3.2.M1 and later has got great CDI support - they've implemented around 60 validations (meaning you get that vitally important feedback about whether you made a mistake much earlier) and added content assist for EL in JSF, as well provided excellent integration with m2eclipse, meaning you can easily scaffold a new project, and then import it into Eclipse. Check it out
JBoss AS
Weld 1.1.0.Beta1 will be included in the next release of JBoss AS 6.0; until then you are best off using a snapshot build of JBoss AS. We recommend you use this build, unless you want to live life on the edge!
About Weld
Weld is used in GlassFish V3 and the JBoss AS 6 series. Weld also has support for Servlet containers such as Tomcat and Jetty. Alternatively, you can use Weld with Java SE.
There is great testing support via Arquillian, which allows you to test in Weld SE, a mocked out Java EE container, Tomcat or Jetty, as well as JBoss AS and GlassFish.
If you are just getting started, there are a few examples in the distribution to guide you (look for instructions in the reference guide, and each example has a readme.txt). If you are looking for help, try our user forums, or perhaps join us on IRC.
[ Distribution (Weld, CDI TCK) ] | [ Release Notes (Weld, CDI TCK) ] | [ Reference Guide (Weld, CDI TCK ] | [ Issue Tracker (Weld, CDI TCK) ] | [ CDI Javadoc ]