service-locator
Regarding Service Locator Pattern
Service Locator seems like a pretty useful concept and I\'d like to implement it in my app. However, I have a few questions about how it should be implemented and how it should be used in conjunction[详细]
2023-04-05 09:50 分类:问答verifiying I understand the difference between IoC, Ioc Container, DI and service locator
read many posts about the difference between the 3 idioms. But got more confused, then I ran into this article:[详细]
2023-04-04 04:37 分类:问答ASP.NET MVC 3 - Dependency Resolver Issue When Replacing the Common Service Locator
Using Microsoft Unity i register the开发者_如何学C following type: container.RegisterType(typeof(IRepository<>), typeof(NHibernateRepository<>));[详细]
2023-03-31 20:24 分类:问答How to declare the Unity InjectionFactory in XML configuration
I\'m in the process of moving our Unity configuration to the web.config file.I\'m stuck on how to migrate the following code config to the xml format:[详细]
2023-03-29 13:10 分类:问答How to inject services into view/viewmodel using Ninject in MVC3?
I am using MVC3 with Ninject, Dependencies in my controller are resolved with no problem. I have few services like localization, format provider and I want them to be开发者_如何学Go injected into view[详细]
2023-03-27 08:00 分类:问答GWT / RequestFactory: when retrieving a given list of entities, n +1 SQL calls are executed [duplicate]
This question already has an answer here: Closed 11 years ago. Possible Duplicate: requestfactory and findEntity method in GWT[详细]
2023-03-24 05:42 分类:问答How to avoid Service Locator Anti-Pattern?
I\'m trying to remove a Service Locator from an abstract base class, but I\'m not sure what to replace it with. Here is a psuedo-example of what I\'ve got:[详细]
2023-03-23 05:53 分类:问答How should I architect logging within my application?
So I\'ve done a lot of research on this and haven\'t found any answers where I said, \"yes, THAT\". I\'m hoping the ever-erudite StackOverflow crowd can help me out.[详细]
2023-03-20 16:31 分类:问答Avoiding Service Locator Antipattern with legacy app not designed for IOC
I have read often that Service Locators in IOC are an anti-pattern. Last year we introduced IOC (Ninject specifically) to our application at work. The app is legacy, it\'s very big and it\'s fragmen[详细]
2023-03-16 20:06 分类:问答Dependency Injection - use with Data Transfer Objects (DTOs)?
Consider the code below (which has been simplified). I have a service class that returns a list of specific DTO objects that each implement their own specific interface. In the actual code these are g[详细]
2023-03-11 23:58 分类:问答