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 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

A Comparison of Some Dependency Injection Frameworks: Part 1 Introduction and Motivation

Introduction This article is the first in a series of articles that will look briefly at a number of dependency injection (‘DI’) frameworks, and will try to compare them by implementing some fairly standard DI constructs.  The articles will consider both Java and .Net frameworks.  The selection of frameworks will not be particularly scientific or comprehensive: they are simply the … Continue reading A Comparison of Some Dependency Injection Frameworks: Part 1 Introduction and Motivation

Constructor Injection in the CAB (Introduction to the CAB/SCSF Part 6)

Introduction Part 3 of this series of articles described the different types of dependency injection that we can use in general. These are setter injection, constructor injection and interface injection. Part 5 showed how dependency injection works in the CAB. The examples given there exclusively used setter injection. In general we don’t use interface injection … Continue reading Constructor Injection in the CAB (Introduction to the CAB/SCSF Part 6)

Dependency Injection and the Composite Application Block (Introduction to CAB/SCSF Part 5)

Introduction In part 1 of this series of articles I described a simple CAB application. This had three Windows Application C# projects with no references to each other. In spite of this, with some very simple code we could get all three to launch their individual screens. That very simple application didn’t have the projects … Continue reading Dependency Injection and the Composite Application Block (Introduction to CAB/SCSF Part 5)

An Aside on Inversion of Control, Dependency Inversion and Dependency Injection (Introduction to CAB/SCSF Part 4)

Introduction In part 3 of this series of articles I discussed dependency injection in general terms. To understand what the CAB is doing for you it’s important to have an understanding of dependency injection, and I will be talking more about it in part 5. This short article is something of an aside however, and … Continue reading An Aside on Inversion of Control, Dependency Inversion and Dependency Injection (Introduction to CAB/SCSF Part 4)