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.

How do the major C# DI/IoC frameworks compare?

At the risk of stepping into holy war territory, What are the strengths and weaknesses of these popular DI/IoC …

c# dependency-injection unity-container ioc-container ninject
How to inject a Map using the @Value Spring Annotation?

How can i inject values into a Map from the properties file using the @Value annotation in Spring ? My Spring …

java spring dependency-injection annotations spring-annotations
Dependency injection with Jersey 2.0

Starting from scratch without any previous Jersey 1.x knowledge, I'm having a hard time understanding how to setup dependency injection …

java dependency-injection jersey jersey-2.0 hk2
One DbContext per web request... why?

I have been reading a lot of articles explaining how to set up Entity Framework's DbContext so that only one …

c# asp.net entity-framework dependency-injection dbcontext
Using Spring 3 autowire in a standalone Java application

Here is my code: public class Main { public static void main(String[] args) { Main p = new Main(); p.start(args); } @…

java spring dependency-injection main autowired
Angularjs minify best practice

I'm reading http://www.alexrothenberg.com/2013/02/11/the-magic-behind-angularjs-dependency-injection.html and it turned out that angularjs dependency injection has problems if you …

javascript angularjs dependency-injection
Passing data into "router-outlet" child components

I've got a parent component that goes to the server and fetches an object: // parent component @Component({ selector : 'node-display', template : ` &…

angular dependency-injection angular2-routing
How to explain dependency injection to a 5-year-old?

What is a good way to explain dependency injection? I found several tutorials on Google, but none of them that …

design-patterns dependency-injection inversion-of-control
Do I need dependency injection in NodeJS, or how to deal with ...?

I currently creating some experimental projects with nodejs. I have programmed a lot Java EE web applications with Spring and …

node.js dependency-injection inversion-of-control
Can I pass constructor parameters to Unity's Resolve() method?

I am using Microsoft's Unity for dependency injection and I want to do something like this: IDataContext context = _unityContainer.Resolve&…

c# .net dependency-injection unity-container constructor-injection