Top "Inversion-of-control" questions

Inversion of control (IoC) is an abstract principle describing an aspect of some software architecture designs in which the flow of control of a system is inverted in comparison to procedural programming.

When would you use the Common Service Locator?

I've been looking at the Common Service Locator as a way of abstracting my IoC container but I've been noticing …

c# dependency-injection inversion-of-control service-locator common-service-locator
What does this mean in Prism/Unity: Container.Resolve<ShellPresenter>()

(from the StockTraderRIBootstrapper.cs file in the Prism V2 StockTrader example app) What is the difference between this: ShellPresenter presenter = …

inversion-of-control unity-container prism containers
Is Dependency Injection possible with a WPF application?

I want to start using dependency injection in my WPF application, largely for better unit testability. My app is mostly …

wpf design-patterns dependency-injection inversion-of-control autofac
Recommended IoC framework for iOS?

Can anyone recommend a good IoC framework for iOS to facilitate dependency injection? The only one I've found so far …

ios dependency-injection inversion-of-control
The type String cannot be constructed

I'm using Web.api and Unity and I am getting the following error when trying to open the default "help" …

asp.net-web-api architecture dependency-injection inversion-of-control unity-container
How to define a default constructor by code using StructureMap?

I can't figure out how to define the default constructor (when it exists overloads) for a type in StructureMap (version 2.5) …

c# inversion-of-control structuremap
How to integrate an old Struts application with Spring 3.x

i was wondering how to and what the prefered way of integrating an Struts 1.x application with Spring 3.x so …

spring struts inversion-of-control integration
Which Dependency Injection Tool Should I Use?

I am thinking about using Microsoft Unity for my Dependency Injection tool in our User Interface. Our Middle Tier already …

.net dependency-injection inversion-of-control castle-windsor ioc-container
Multiple implementations for one interface with DI

Right now I'm trying to teach myself the Dependency Injection pattern with the IOC-container from Autofac. I've come up with …

c# .net dependency-injection inversion-of-control autofac
Spring 3.2 Autowire generic types

So I have a number of generics in Spring 3.2 and ideally my architecture would look something like this. class GenericDao&…

java generics spring-mvc inversion-of-control autowired