Emil has posted 2 posts at DZone. View Full User Profile

Caucho CanDI: Early Access Java Injection in Resin 4

09.04.2009
| 7615 views |
  • submit to reddit

The Caucho development team invites early adopters, technology watchers, and developers looking for new patterns to try CanDI, Caucho Technology's implementation of JSR-299 in the Resin 4.0.1 release. A growing list of Java Injection design patterns are emerging that will help even experienced developers solve old and new problems.  We have documented some of the patterns in a recent whitepaper and hope the community will contribute even more.

The JSR-299 standard and the CanDI implementation are gaining more and more attention with the advent of JavaEE 6. Open source projects using Java Injection as a foundation are already appearing (such as the Subetha mailing list manager), showing the power and simplicity of the standard.  Some of the features of Caucho's JSR-299 implementation include:

  • Java Injection using @Current and custom @BindingTypes
  • JSP and JSF expression language integration using @Named annotations
  • @Interceptor and @Decorator aspect programming
  • Integrated event system

 

Caucho's CanDI implementation integrates the standard throughout the Resin Application Server to create a unified framework for developers and administrators.  This unique feature allows developers to inject configured objects such as pooled data sources, JMS queues, distributed caches, and more, avoiding JNDI or factories.  CanDI is also integrated with the Pomegranate runtime dependency manager to control the visibility of classes outside of a library.

To learn about CanDI, more information is available:

0
Published at DZone with permission of its author, Emil Ong.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)