Gang Of Coders
Home
About Us
Contact Us
All Dependency Injection Solutions on Gang of Coders
Total of 171 Dependency Injection Solutions
What is dependency injection?
Design Patterns
Language Agnostic
Dependency Injection
Terminology
AngularJS: Service vs provider vs factory
Angularjs
Dependency Injection
Angularjs Service
Angularjs Factory
Angularjs Provider
What is a JavaBean exactly?
Java
Dependency Injection
Inversion of-Control
Javabeans
Serializable
What is the difference between @Inject and @Autowired in Spring Framework? Which one to use under what condition?
Java
Spring
Dependency Injection
Autowired
Inject
Inversion of Control vs Dependency Injection
Dependency Injection
Inversion of-Control
Why do I need an IoC container as opposed to straightforward DI code?
Dependency Injection
Inversion of-Control
Ioc Container
Why does one use dependency injection?
Dependency Injection
Dependency Injection vs Factory Pattern
Dependency Injection
Factory Pattern
Design Patterns
Resolving instances with ASP.NET Core DI from within ConfigureServices
C#
Dependency Injection
asp.net Core
asp.net Core-Mvc
Error when trying to inject a service into an angular component "EXCEPTION: Can't resolve all parameters for component", why?
Angular
Typescript
Dependency Injection
One DbContext per web request... why?
C#
asp.net
Entity Framework
Dependency Injection
Dbcontext
@Resource vs @Autowired
Java
Spring
Dependency Injection
Annotations
Autowired
Which .NET Dependency Injection frameworks are worth looking into?
C#
.Net
Dependency Injection
Inversion of-Control
Why is IoC / DI not common in Python?
Python
Design Patterns
Dependency Injection
Inversion of-Control
Architecture
ASP.NET Core Dependency Injection error: Unable to resolve service for type while attempting to activate
C#
Dependency Injection
asp.net Core
asp.net Core-Mvc
Why use @PostConstruct?
Java
Dependency Injection
Jakarta Ee
Cdi
Jsr299
What's the difference between the Dependency Injection and Service Locator patterns?
Design Patterns
Dependency Injection
Service Locator
What are the downsides to using Dependency Injection?
Design Patterns
Dependency Injection
How to avoid Dependency Injection constructor madness?
C#
Java
Dependency Injection
Inversion of-Control
Ioc Container
How do the major C# DI/IoC frameworks compare?
C#
Dependency Injection
Unity Container
Ioc Container
Ninject
How can I inject a property value into a Spring Bean which was configured using annotations?
Java
Spring
Dependency Injection
Injecting Mockito mocks into a Spring bean
Spring
Dependency Injection
Junit
Annotations
Mockito
Do I need dependency injection in NodeJS, or how to deal with ...?
node.js
Dependency Injection
Inversion of-Control
Spring @Autowire on Properties vs Constructor
Spring
Dependency Injection
Constructor
Autowired
What exactly is Field Injection and how to avoid it?
Java
Spring Mvc
Dependency Injection
Portlet
Autowired
Dependency Inject (DI) "friendly" library
C#
Dependency Injection
Inversion of-Control
Passing Parameters JavaFX FXML
Javafx
Parameters
Dependency Injection
Parameter Passing
Fxml
How to explain dependency injection to a 5-year-old?
Design Patterns
Dependency Injection
Inversion of-Control
InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor'
.Net
Dependency Injection
asp.net Core
What is Castle Windsor, and why should I care?
C#
Dependency Injection
Inversion of-Control
Castle Windsor
.NET Core DI, ways of passing parameters to constructor
C#
asp.net Core
Dependency Injection
.Net Core
Ioc Container
Spring: Why do we autowire the interface and not the implemented class?
Java
Spring
Dependency Injection
Can someone explain Microsoft Unity?
C#
Dependency Injection
Inversion of-Control
Unity Container
Is ServiceLocator an anti-pattern?
Design Patterns
Dependency Injection
Anti Patterns
Service Locator
Dependency injection through constructors or property setters?
Dependency Injection
Inversion of-Control
Unit testing code with a file system dependency
Unit Testing
Dependency Injection
Dependencies
Is there a pattern for initializing objects created via a DI container
Dependency Injection
Inversion of-Control
Unity Container
Ioc Container
Interface Design
How to inject dependencies into a self-instantiated object in Spring?
Java
Spring
Dependency Injection
Passing data into "router-outlet" child components
Angular
Dependency Injection
Angular2 Routing
Spring Expression Language (SpEL) with @Value: dollar vs. hash ($ vs. #)
Spring
Dependency Injection
Spring El
What "things" can be injected into others in Angular.js?
Angularjs
Dependency Injection
Ioc/DI - Why do I have to reference all layers/assemblies in application's entry point?
Dependency Injection
Inversion of-Control
Castle Windsor
Must Dependency Injection come at the expense of Encapsulation?
Oop
Dependency Injection
Inversion of-Control
Encapsulation
What is javax.inject.Named annotation supposed to be used for?
Java
Spring
Dependency Injection
Java Ee-6
How to inject window into a service?
Angular
Typescript
Dependency Injection
How to handle dependency injection in a WPF/MVVM application
C#
Wpf
Mvvm
Dependency Injection
Dependencies
Unable to resolve ILogger from Microsoft.Extensions.Logging
C#
.Net
Dependency Injection
.Net Core
Ilogger
ContextLoaderListener or not?
Java
Spring
Servlets
Dependency Injection
Is there an alternative to bastard injection? (AKA poor man's injection via default constructor)
C#
.Net
Oop
Dependency Injection
Constructor
Difference between @Bean and @Autowired
Java
Spring
Dependency Injection
how to unit test asp.net core application with constructor dependency injection
C#
Unit Testing
asp.net Core
Testing
Dependency Injection
Dependency injection with Jersey 2.0
Java
Dependency Injection
Jersey
Jersey 2.0
Hk2
What is the difference between Strategy pattern and Dependency Injection?
Design Patterns
Dependency Injection
Strategy Pattern
Dependency Injection with classes other than a Controller class
C#
asp.net Core
.Net Core
Dependency Injection
asp.net Core-Mvc
Spring injects dependencies in constructor without @Autowired annotation
Spring
Spring Boot
Dependency Injection
Autowired
How do I pass values to the constructor on my wcf service?
Wcf
Dependency Injection
Factory Pattern
exclude @Component from @ComponentScan
Java
Spring
Dependency Injection
Spring Boot
Spring Ioc
Difference between dependency injection and dependency inversion
Php
Design Patterns
Dependency Injection
Dependency Inversion
Google Guice vs. PicoContainer for Dependency Injection
Java
Dependency Injection
Guice
Picocontainer
Angularjs minify best practice
Javascript
Angularjs
Dependency Injection
How to set up DAGGER dependency injection from scratch in Android project?
Android
Dependency Injection
Dagger
Dagger 2
What are the benefits of dependency injection containers?
Xml
Spring
Dependency Injection
Inject nestjs service from another module
Javascript
node.js
Typescript
Dependency Injection
Nestjs
Dependency Injection & Singleton Design pattern
Design Patterns
Oop
Dependency Injection
How to retrieve annotated instance from Guice's injector?
Java
Dependency Injection
Configuration
Annotations
Guice
Symfony 2 EntityManager injection in service
Php
Symfony
Dependency Injection
What is a Pythonic way for Dependency Injection?
Python
Oop
Authentication
Dependency Injection
Frameworks
Can I pass constructor parameters to Unity's Resolve() method?
C#
.Net
Dependency Injection
Unity Container
Constructor Injection
On IServiceProvider what are the differences between the GetRequiredService and GetService methods?
Dependency Injection
asp.net Core
.Net Core
AngularJS seed: putting JavaScript into separate files (app.js, controllers.js, directives.js, filters.js, services.js)
Javascript
Angularjs
Dependency Injection
.NET Core IServiceScopeFactory.CreateScope() vs IServiceProvider.CreateScope() extension
C#
asp.net Core
Dependency Injection
.Net Core
Requested bean is currently in creation: Is there an unresolvable circular reference?
Spring
Dependency Injection
Autowired
Reader Monad for Dependency Injection: multiple dependencies, nested calls
Scala
Dependency Injection
Scalaz
How to get an instance of IServiceProvider in .NET Core?
C#
.Net Core
Dependency Injection
Service Provider
Difference between "Inversion of Control", "Dependency inversion" and "Decoupling"
Dependency Injection
Ioc Container
Decoupling
How to inject a Map using the @Value Spring Annotation?
Java
Spring
Dependency Injection
Annotations
Spring Annotations
Dependency injection, inject with parameters
C#
asp.net Core
Dependency Injection
asp.net Core-Mvc
re-open and add dependencies to an already bootstrapped application
Angularjs
Dependency Injection
Bootstrapping
Is it a good practice to have logger as a singleton?
C#
.Net
Logging
Dependency Injection
Singleton
When are .NET Core dependency injected instances disposed?
Dependency Injection
asp.net Core
.Net Core
Idisposable
Replace service registration in ASP.NET Core built-in DI container?
C#
Dependency Injection
asp.net Core
.Net Core
Why not use an IoC container to resolve dependencies for entities/business objects?
Dependency Injection
Inversion of-Control
Castle Windsor
Ioc Container
Entities
What is a composition root in the context of dependency injection?
Dependency Injection
Inversion of-Control
Python mock Patch os.environ and return value
Python
Unit Testing
Python 3.x
Dependency Injection
Mocking
ASP.NET Core initialize singleton after configuring DI
C#
asp.net Core
Dependency Injection
Singleton
Injecting dependencies into ASP.NET MVC 3 action filters. What's wrong with this approach?
C#
asp.net Mvc
asp.net Mvc-3
Dependency Injection
Actionfilterattribute
How to inject a repository into a service in Symfony?
Php
Symfony
Dependency Injection
Generic repository in ASP.NET Core without having a separate AddScoped line per table in Startup.cs?
Generics
Dependency Injection
asp.net Core
asp.net Core-Mvc
How to use log4net with Dependency Injection
Design Patterns
Dependency Injection
Log4net
Is it possible to add qualifiers in @RequiredArgsConstructor(onConstructor = @__(@Autowired))?
Java
Spring
Dependency Injection
Lombok
Spring JUnit: How to Mock autowired component in autowired component
Java
Spring
Junit
Dependency Injection
Explain why constructor inject is better than other options
Java
Spring
Dependency Injection
Required
How would one do dependency injection in scala?
Scala
Dependency Injection
Dependency injection and named loggers
C#
Logging
Dependency Injection
Log4net
Nlog
Injecting a Spring dependency into a JPA EntityListener
Spring
Jpa
Dependency Injection
Spring Roo
Entitylisteners
How can I pass a runtime parameter as part of the dependency resolution?
C#
Dependency Injection
asp.net Core
.Net Core
How to do DI in asp.net core middleware?
C#
asp.net Core
Dependency Injection
asp.net Core-2.0
asp.net Core-Middleware
Using Spring 3 autowire in a standalone Java application
Java
Spring
Dependency Injection
Main
Autowired
Resolve IContainer
C#
Dependency Injection
Inversion of-Control
Autofac
Use DbContext in ASP .Net Singleton Injected Class
C#
Dependency Injection
asp.net Core
Unit Testing File I/O
C#
Unit Testing
File Io
Dependency Injection
Nunit
Autofac - InstancePerHttpRequest vs InstancePerLifetimeScope
C#
asp.net Mvc-3
Dependency Injection
Autofac
Dagger: IllegalArgumentException: No injector factory bound for Class
Android
Dependency Injection
Dagger 2
Dagger
How can I use "Dependency Injection" in simple php functions, and should I bother?
Php
Dependency Injection
Parameter Passing
I don't understand the use of $inject in controllers
Javascript
Angularjs
Dependency Injection
Inject service into Action Filter
C#
asp.net Core
Dependency Injection
.Net Core
Self injection with Spring
Java
Spring
Dependency Injection
Ioc Container
Why exactly isn't MEF a DI/IoC container?
.Net
Dependency Injection
What is Dependency Injection?
Java
Spring
Dependency Injection
Inject bean into enum
Java
Spring
Dependency Injection
Autowired
How to use DI container when OwinStartup
C#
asp.net Web-Api
Dependency Injection
Ninject
Owin
Does dependency injection exist in Rails?
Ruby on-Rails
Ruby
Spring
Dependency Injection
How to use dependency injection with an attribute?
C#
.Net
asp.net Mvc
Dependency Injection
Dependency Injection framework for C++
C++
Dependency Injection
Windsor - pulling Transient objects from the container
.Net
Dependency Injection
Castle Windsor
Ioc Container
Inject and Resource and Autowired annotations
Spring
Dependency Injection
Annotations
Cdi
Autowired
Android MVVM Design Pattern Examples
Java
Android
Design Patterns
Mvvm
Dependency Injection
How do I make my PHP IDE understand Dependency Injection Containers?
Php
Ide
Dependency Injection
Phpstorm
Dependency injection using Azure WebJobs SDK?
C#
Azure
Dependency Injection
Azure Webjobs
Understanding IoC Containers and Dependency Injection
Php
Oop
Inheritance
Dependency Injection
Inversion of-Control
Asp.Net Core: register implementation with multiple interfaces and lifestyle Singleton
C#
Dependency Injection
asp.net Core
Inversion of-Control
How to setup app settings in a .Net Core 3 Worker Service
C#
Dependency Injection
.Net Core-3.0
.Net Core-Configuration
Dagger and Butter Knife vs. Android Annotations
Android
Dependency Injection
Dagger
Android Annotations
Butterknife
How to get bean using application context in spring boot
Java
Spring
Spring Boot
Dependency Injection
Kotlin Error: Dagger does not support injection into private fields
Android
Dependency Injection
Kotlin
Dagger 2
Dagger
What is the real difference between "Bastard Injection" and "Poor Man's Injection"
Oop
Dependency Injection
Architecture
ASP.NET Core Dependency Injection with Multiple Constructors
asp.net
Dependency Injection
asp.net Core
asp.net Core-Mvc
Google Guice vs. JSR-299 CDI / Weld
Java
Dependency Injection
Aop
Cdi
Jboss Weld
Does "Avoid dependency injection frameworks" in the Android Memory Guide apply to Dagger as well?
Android
Performance
Dependency Injection
Dagger
How to inject application context in a repository with Hilt?
Android
Dependency Injection
Dagger Hilt
How to create dependency injection for ASP.NET MVC 5?
C#
asp.net
asp.net Mvc
Dependency Injection
asp.net Mvc-5
What is the intention of Ninject modules?
C#
Dependency Injection
Module
Ninject
Module Pattern
spring autowiring with unique beans: Spring expected single matching bean but found 2
Spring
Spring Mvc
Dependency Injection
Annotations
Autowired
Spring: namespace vs contextConfigLocation init parameters in web.xml
Spring
Spring Mvc
Dependency Injection
What is Ninject and when do you use it?
C#
Dependency Injection
Ninject
Why would one use a third-party DI Container over the built-in ASP.NET Core DI Container?
asp.net
Dependency Injection
asp.net Core
AngularJS - Dependency injection in services, factories, filters etc
Javascript
Dependency Injection
Angularjs
Spring annotation-based DI vs xml configuration?
Java
Spring
Configuration
Dependency Injection
Annotations
How to inject the @request into a service?
Symfony
Service
Dependency Injection
Injecting a String property with @InjectMocks
Java
Spring
Unit Testing
Dependency Injection
Mockito
Proper way to register HostedService in ASP.NET Core. AddHostedService vs AddSingleton
C#
asp.net Core
.Net Core
Dependency Injection
asp.net Core-Hosted-Services
MEF (Managed Extensibility Framework) vs IoC/DI
Dependency Injection
Inversion of-Control
Mef
Property Injection in ASP.NET Core
Dependency Injection
asp.net Core
Is it possible to use Dependency Injection with xUnit?
Unit Testing
Testing
Dependency Injection
Ioc Container
Xunit
What is different between and purpose of MEF and Unity?
.Net
Dependency Injection
Unity Container
Mef
Replacing com.google.inject with javax.inject
Java
Gwt
Dependency Injection
Guice
Gwt Gin
What is difference between singleton and prototype bean?
Spring
Dependency Injection
WELD-001408: Unsatisfied dependencies for type Customer with qualifiers @Default
Jsf
Jakarta Ee
Dependency Injection
Cdi
Managed Bean
Dagger 2 - what is the purpose of a @Singleton annotation class
Dependency Injection
Dagger
Dagger 2
Is spring default scope singleton or not?
Java
Spring
Dependency Injection
Singleton
Spring Ioc
Factory method with DI and IoC
C#
Dependency Injection
Inversion of-Control
Factory Pattern
How to extend a component with dependency injection?
Dependency Injection
Angular
How to specify a classifier in a gradle dependency's dependency?
Java
Dependency Injection
Guice
Gradle
Dependency Management
Dagger 2 injecting Android Application Context
Android
Dependency Injection
Android Context
Dagger 2
Constructor Injection: How many dependencies is too many?
Dependency Injection
Is there a list of Symfony2 default container services?
Symfony
Dependency Injection
Optional dependencies in AngularJS
Javascript
Angularjs
Dependency Injection
Optional Parameters
Does .net core dependency injection support Lazy<T>
C#
Dependency Injection
asp.net Core
.Net Core
Lazy Initialization
Dependency injection framework for Cocoa?
Objective C
Cocoa
Dependency Injection
Comparing Castle Windsor, Unity and StructureMap
Dependency Injection
Castle Windsor
Structuremap
Unity Container
Ioc Container
How does Spring annotation @Autowired work?
Spring
Dependency Injection
Autowired
Strategy Pattern with no 'switch' statements?
C#
Design Patterns
Dependency Injection
Strategy Pattern
Coding Style
Dagger @Reusable scope vs @Singleton
Dependency Injection
Dagger 2
When to use Dependency Injection
Dependency Injection
Can I just inject super class when use dagger2 for dependency injection?
Java
Android
Dependency Injection
Dagger
Dagger 2
Unable to resolve service for type while attempting to activate
C#
asp.net Core
Dependency Injection
asp.net Core-Mvc
Python Dependency Injection Framework
Python
Dependency Injection
Dependency injection in unit of work pattern using repositories
C#
Entity Framework
Dependency Injection
Unit of-Work
Ninject: Registering an already created instance with Ninject?
Dependency Injection
Ninject
Ninject 2
How to register ILogger for injection in ASP.NET MVC 6
C#
Logging
Dependency Injection
asp.net Core-Mvc
spring @Autowire property vs setter
Java
Spring
Dependency Injection