Top "Ioc-container" questions

In object oriented languages, an inversion of control container (ioc-container) can be used for configuring and managing objects in an application.

How does autowiring work in Spring?

I'm a little confused as to how the inversion of control (IoC) works in Spring. Say I have a service …

java spring spring-mvc ioc-container autowired
Why do I need an IoC container as opposed to straightforward DI code?

I've been using Dependency Injection (DI) for a while, injecting either in a constructor, property, or method. I've never felt …

dependency-injection inversion-of-control ioc-container
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
Is there a pattern for initializing objects created via a DI container

I am trying to get Unity to manage the creation of my objects and I want to have some initialization …

dependency-injection inversion-of-control unity-container ioc-container interface-design
How to avoid Dependency Injection constructor madness?

I find that my constructors are starting to look like this: public MyClass(Container con, SomeClass1 obj1, SomeClass2, obj2.... ) with …

c# java dependency-injection inversion-of-control ioc-container
.NET Core DI, ways of passing parameters to constructor

Having the following service constructor public class Service : IService { public Service(IOtherService service1, IAnotherOne service2, string arg) { } } What are the …

c# asp.net-core dependency-injection .net-core ioc-container
Cannot get rid of "physical connection is not usable" exception

I am about to shoot myself. Spent few weeks now trying to solve this issue. We have an ASP.NET …

sql-server asp.net-mvc entity-framework unity-container ioc-container
Creating an instance using Ninject with additional parameters in the constructor

I decided to start using Ninject and face an issue. Say I have the following scenario. I have an IService …

c# ioc-container ninject
How to create a RESTful Resource Controller in Laravel 5.2, using Artisan command (PHP)

I'm working with Laravel 5 and I would like to know how to generate a RESTful Resource Controller with all predefined …

php laravel-5.2 ioc-container
@PostConstruct annotation and spring lifecycle

I'm new to Spring, I would like to know: I have a java class annotated with @Component (spring) and inside …

java spring ioc-container