inversion-of-control
How to set Class<?> as property value in spring application context?
Is there a way to configure spring application context so it will initialize the setter with value of type Class?[详细]
2023-03-28 14:22 分类:问答Structure Map 2.6.2 scoping
I\'m moving my application from Structure Map 2.5.3 to 2.6.2 and I\'m having some scoping problems. In 2.5.3 version I used CacheBy(InstanceScope.HttpContext) to have instances disposed at the end of[详细]
2023-03-28 05:09 分类:问答With Unity how do I inject a named dependency into a constructor?
I have the IRespository registered twice (with names) in the following code: // Setup the Client Repository[详细]
2023-03-28 00:32 分类:问答Ninject - The resource cannot be found
I get error The resource cannot be found. When I try to implement Ninject in my MVC-3 application.The problem appears to be coming from Global.asax during CreateKernel()[详细]
2023-03-27 23:56 分类:问答OOD using IoC containers - how to construct dependant objects?
I am trying to get better with IoC,DI and OOD for better testability and looser coupling. So when we design classes with heavy use of IoC and DI we can endup with classes with multiple dependencies f[详细]
2023-03-27 16:15 分类:问答Is it possible in a JavaEE6 application server to obtain a reference to the "instanciator" component
In JavaEE6, we can make good use of IoC through various annotations (@EJB, @Resource, ...). But, is it possible to obtain an instance of the server component used to instanciate those objects ? What[详细]
2023-03-27 14:35 分类:问答Getting ALL instances which implement a specific interface with spring.net
I\'m evaluating different IoC containers and did some performance testing. It seems to me that Spring.NET is really bad when it comes to resolving interfaces which are implemented by multiple classes.[详细]
2023-03-27 11:17 分类:问答What is an IOC container actually doing for me here?
So I\'ve refactored completely to constructor injection, and now I have a bootstrapper class that looks similar to this:[详细]
2023-03-27 10:23 分类:问答Manual disposing is not working if using NInject RequestScope
I am using RequestScope of NInject in my application Bind<ITestClass>().To<TestClass>().InRequestScope();[详细]
2023-03-27 07:46 分类:问答Resolving with rules in Unity?
I have interface IRepository that maps to the class GenericRepository in unity. IOC.Container.RegisterType<IRepository, GenericRepository>();[详细]
2023-03-26 20:48 分类:问答