Andrew Stopford's Weblog

poobah

News

Articles

MbUnit Folks

Old Blogs

Using IoC with Castle MicroKernel

Inversion of Control or IoC is very simply put a pattern defined by Martin Fowler for injecting a class's dependencies. IoC helps with mocking objects and thus a dependency of a object. It helps improve testability of a object because of  the easy of mock object injections. Java and .NET have a good collection of OSS frameworks for IoC, Spring is quite popular in the Java world and Spring.Net in the .NET world. There is quite a lot of XML configuration to Spring and a alternative and popular choice in the ..NET world is Castle MicroKernel. The documentation is top notch for learning how to use this framework with a work through guide, well worth a look.

Comments

Steve Ringo said:

Unfortunately the work through guide is incomplete. The first one is good, but then you get left wanting for more :-(

# February 14, 2007 12:11 AM

Matthew said:

You can check out this *excellent* guide over dotnetslackers.com here

dotnetslackers.com/.../InversionOfControlAndDependencyInjectionWithCastleWindsorContainerPart1.aspx

Actually, there are 4 tutorials building on top of each others. A must for people wanting to get started with the Windsor Container and IoC/DI in general.

# October 2, 2007 11:59 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)