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.