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.

FactoryBeans and the annotation-based configuration in Spring 3.0

Spring provides the FactoryBean interface to allow non-trivial initialisation of beans. The framework provides many implementations of factory beans and …

java spring inversion-of-control spring-annotations
how to use MVVMLight SimpleIoc?

I'm revamping my software which has messy Messenger.Default(...) bits. Is there any cheat sheet to know MVVMLight SimpleIoc usage (…

c# wpf inversion-of-control mvvm-light windows-store-apps
Is dependency injection useful in C++

C# uses Dependency Injection (DI) a lot to have a lossless and testable platform. For this, I need an interface …

c# c++ dependency-injection inversion-of-control loose-coupling
MVC 4 Web Api Controller does not have a default constructor?

Here is the trace: <Error> <Message>An error has occurred.</Message> <ExceptionMessage> …

c# asp.net-mvc-4 asp.net-web-api inversion-of-control ninject
Dependency Inject (DI) "friendly" library

I'm pondering the design of a C# library, that will have several different high level functions. Of course, those high-level …

c# dependency-injection inversion-of-control
Using IoC for Unit Testing

How can a IoC Container be used for unit testing? Is it useful to manage mocks in a huge solution (50+ …

c# unit-testing mocking inversion-of-control
Autofac None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder'

None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'LMS.Services.Security.EncryptionService' can be invoked …

c# dependency-injection inversion-of-control autofac ioc-container
With Unity how do I inject a named dependency into a constructor?

I have the IRespository registered twice (with names) in the following code: // Setup the Client Repository IOC.Container.RegisterType<…

c# inversion-of-control unity-container
Spring: Using builder pattern to create a bean

I use ektorp to connect to CouchDB. The way to build an ektorp HttpClient instance is to use builder pattern: …

java spring dependency-injection inversion-of-control builder
Factory method with DI and IoC

I am familiar with these patterns but still don't know how to handle following situation: public class CarFactory { public CarFactory(…

c# dependency-injection inversion-of-control factory-pattern