Top "Dependency-injection" questions

A design pattern to reduce coupling between components, by dynamically injecting into a software component dependencies that it needs to function.

spring autowiring with unique beans: Spring expected single matching bean but found 2

I am trying to autowire some beans (for dependency injection) using Spring for a webapp. One controller bean contains another …

spring spring-mvc dependency-injection annotations autowired
What is Dependency Injection?

Possible Duplicate: What is dependency injection? Spring is the framework from where the concept Dependency Injection came to picture. What …

java spring dependency-injection
Explain why constructor inject is better than other options

In a Pro Spring 3 Book, Chapter 4 - Introduction IOC and DI in Spring - Page 59, In "Setter Injection vs. Constructor …

java spring dependency-injection required
Symfony 2 EntityManager injection in service

I've created my own service and I need to inject doctrine EntityManager, but I don't see that __construct() is called …

php symfony dependency-injection
Spring expected at least 1 bean which qualifies as autowire candidate for this dependency

I have a trouble with this Autowire: @Controller public class ChiusuraController { @Autowired private ChiusuraProvider chiusuraProvider; } with this bean: @Service @Transactional …

spring dependency-injection autowired
Why is IoC / DI not common in Python?

In Java IoC / DI is a very common practice which is extensively used in web applications, nearly all available frameworks …

python design-patterns dependency-injection inversion-of-control architecture
WELD-001408: Unsatisfied dependencies for type Customer with qualifiers @Default

I'm a Java EE-newbie. I want to test JSF and therefore made a simple program but can not deploy it. …

jsf jakarta-ee dependency-injection cdi managed-bean
Spring JUnit: How to Mock autowired component in autowired component

I've got a Spring component I'd like to test and this component has an autowired attribute which I need to …

java spring junit dependency-injection
Can someone explain Microsoft Unity?

I've been reading the articles on MSDN about Unity (Dependency Injection, Inversion of Control), but I think I need it …

c# dependency-injection inversion-of-control unity-container
How to inject window into a service?

I'm writing an Angular 2 service in TypeScript that will make use of localstorage. I want to inject a reference to …

angular typescript dependency-injection