Replace Spring.Net IoC with another container (e.g. Ninject)

I am wondering if it is possible to replace Spring.Net's inline IoC container with Ninject. We use Ninject in my team for IoC in our other projects, so if possible, I would like to continue to use this container.

Is it possible? Has anyone written a Ninject-Spring.Net Adapter?

Edit

I like many parts of the Spring.Net package (data access, transactions, etc.), but I don't really like the dependency injection container. I would like to replace this with Ninject

thanks

+5
source share
3 answers

, , ? , // 2 . , .

+2

Spring.NET Ninject, DI Container-agnostic.

DI - . DI , DI, .

, DI , Factory.

DI, , , , , .

, , DI, . Root, DI- .

, DI .

:

+6

, . , , Spring.NET (.. , , ), .

, Common Service Locator. , , .

Ninject, Spring.NET, , , .

For the record, I consider the Service Locator an anti-pattern and find that the Shared Services locator is the wrong answer to the wrong problem. In my eyes, this is completely redundant, but it may be useful to you as an intermediate step.

+2
source

All Articles