Java Injection (CanDI) Pattern Tutorial
Java Injection (CanDI) Pattern Tutorial June 15, 2009 Contents 1 Overview 1 1.1 Tutorial Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2 Java Injection API . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 Service Pattern 4 2.1 Using Services from PHP and JSP . . . . . . . . . . . . . . . . . 5 3 Resource XML Con guration Pattern 6 4 Startup Pattern 9 5 Plugin/Extension Pattern 9 1 Overview The four main CanDI patterns share a common goal: improve code with a declarative injection style. When Java classes cleanly describe their dependen- cies, their lifecycles, and their exports, they are self-documenting.
[Read the rest of this entry...]
