Spring + Guice = CDI
Gavin King says CDI “changes everything”. Come see why.
CDI, which stands for Contexts and Dependency Injection, and was formerly known as Web Beans, is a potent mix of concepts from Spring and Google Guice.
CDI endows ordinary objects with dependency injection, aspect-oriented powers that let you implement, and separate, cross-cutting concerns, and event notification, where any object can notify any other object about events, regardless of the objects' types. You combine those features and more to create elegant, highly readable and extensible code with which you weave tapestries of complex systems.
CDI comes with JEE 6, but you can use it standalone, either in your JEE or JSE applications.
About David Geary
David Geary is the president of Clarity Training, Inc. (corewebdevelopment.com), where he teaches developers to implement web applications using JavaServer Faces (JSF) and the Google Web Toolkit (GWT).
A prominent author, speaker, and consultant, David holds a unique qualification as a Java expert: He wrote the best-selling books on both Java component frameworks: Swing and JavaServer Faces. David's Graphic Java Swing was the best-selling Swing book, and is one of the best-selling Java books of all-time, and Core JSF, which David wrote with Cay Horstman, is the best-selling book on JavaServer Faces.
David was one of a handful of experts on the JSF 1.0 Expert Group (EG) that actively defined the standard Java-based web application framework, and David is currently on the JSF 2 Expert Group, helping to vastly improve JSF in version 2.
Besides serving on the JSF and JSTL Expert Groups, David has contributed to open-source projects and he has written questions for two of Sun's Certification Exams: Web Developer Certification and JavaServer Faces Certification. He invented the Struts Template library which was the precursor to Tiles, a popular framework for composing web pages from JSP fragments, was the 2nd Struts committer and contributed to the Apache Shale project.
David has spoken at more than 100 NFJS symposiums since 2003, and he also speaks at other conferences such as TheServerSide Java Symposium, JavaOne, JavaPolis, and JAOO. David has taught at Java University for the past three years, and is a three-time JavaOne rock star.
More About David »