A Comparison of Some Dependency Injection Frameworks: Part 7 Spring JavaConfig

Introduction This series of articles is examining a number of dependency injection frameworks.  Part 3 of the series looked at the Spring framework configured with XML.  Part 5 and part 6 looked at Guice.  This article will apply the same tests to the Spring framework but configured in code using the JavaConfig download. Code The … Continue reading A Comparison of Some Dependency Injection Frameworks: Part 7 Spring JavaConfig

A Comparison of Some Dependency Injection Frameworks: Part 6 Guice (Java) Continued

Introduction Part 5 of this series of articles started examining Guice as a dependency injection framework.  This article completes that, and makes some general comments on the Guice framework. The code for this article is available (it's the same code as in part 5). Testing Guice (Continued) Tests 4 and 5:  Creation of an object with singleton … Continue reading A Comparison of Some Dependency Injection Frameworks: Part 6 Guice (Java) Continued

A Comparison of Some Dependency Injection Frameworks: Part 5 Guice (Java)

Introduction This series of articles compares a number of dependency injection frameworks. Part 4 looked at Spring.Net.  This article and part 6 look at Google's Guice framework. Guice Guice is a valiant attempt by those clever guys at Google to make dependency injection simpler, and to remove some of the problems with XML configuration described in … Continue reading A Comparison of Some Dependency Injection Frameworks: Part 5 Guice (Java)

Table of Contents: A Comparison of Some Dependency Injection Frameworks

Part 1 Introduction and Motivation A discussion of the motivation behind looking at a number of dependency injection frameworks, and which ones we will look at. Part 2 Scenarios To Be Tested A description of the various tests to be run on the dependency injection frameworks. Part 3 Spring with XML Configuration (Java) A detailed look at running the tests … Continue reading Table of Contents: A Comparison of Some Dependency Injection Frameworks

A Comparison of Some Dependency Injection Frameworks: Part 4 Spring.Net with XML Configuration (.Net)

Introduction Parts 1 to 3 of this series of articles outlined a series of tests we will be running on various dependency injection frameworks.  Part 3 looked at how we would run these tests in Spring for Java using XML configuration. This article will very briefly look at the same tests being run in Spring.Net. … Continue reading A Comparison of Some Dependency Injection Frameworks: Part 4 Spring.Net with XML Configuration (.Net)

A Comparison of Some Dependency Injection Frameworks: Part 3 Spring with XML Configuration (Java)

Introduction Part  2 of this series of articles discussed some tests we will be applying to a variety of dependency injection frameworks.  It also showed the classes that didn't substantially change regardless of the framework. This article will look at how we run these tests in the Spring framework. Code The full code for the … Continue reading A Comparison of Some Dependency Injection Frameworks: Part 3 Spring with XML Configuration (Java)

A Comparison of Some Dependency Injection Frameworks: Part 2 Scenarios To Be Tested

Introduction Part one of this series of articles discussed a set of dependency injection frameworks that we will be examining, and also the motivation behind this. This article describes the tests we will be performing and how they will be constructed in code. The Scenarios Tested The following dependency injection scenarios will be tested: Configuration … Continue reading A Comparison of Some Dependency Injection Frameworks: Part 2 Scenarios To Be Tested