dependency-injection
How to inject N MEF exports into 1 Unity composite service using MefContrib or other technique?
Let\'s say I have 5 separate assemblies with the following (assume the class name is different in each):[详细]
2023-04-11 12:22 分类:问答Open source projects using IoC
I am looking for good real-world examples of IoC in actual .NET software projects that use any of the common (or even uncommon) IoC containers to resolve dependency graphs more complex than two or thr[详细]
2023-04-11 10:08 分类:问答Dependency Injection with Cyclic Dependency
Let me have two very basic objects 开发者_如何学Pythonlike: public class View { public View(Controller controller)[详细]
2023-04-11 09:47 分类:问答How to Inject a Bean with EJB 3.1 before the class constructor runs?
I have a Facade that has a persistence unit. And I need the Facade and it\'s dependencies initialized before the RoleController Conconstructor runs, is it possible in EJB 3.1 to do that ?[详细]
2023-04-11 07:08 分类:问答Symfony2 entity dependencies/app parameters
I\'m pretty new to Symfony2 and I\'m trying to get to grips with how and when to pass dependencies / app parameters and have got into a muddle with how to insert parameters into an entity.[详细]
2023-04-11 06:10 分类:问答Using Guice 3 with JAX-WS in Java 6 outside web container
We have a situation where we use JSR-330 based injections to configure our stand-alone Java 6 applications, which works very well for getting configuration parameters across all the layers.[详细]
2023-04-11 05:10 分类:问答Best practice in dependency injection
This is a question about how best to do DI, so it\'s not tied to any particular DI/IoC framework because, well, framework should be chosen based on pattern and practice rather than the other way aroun[详细]
2023-04-11 04:30 分类:问答Autofac configuration
I am just starting with Autofac and I am trying to configure a simple registration, according to the docs this should work:[详细]
2023-04-11 02:55 分类:问答Jersey: how to use InjectableProvider with @Context annotation?
I followed this post and created by first custom injectable provider, a LocaleProvider that scans the HTTP Request for the Accept-Language header. It works fine if I use it within a Jersey resource:[详细]
2023-04-10 20:14 分类:问答IWindsorInstaller in an assembly and resolving local dependencies
I have a WPF MVVM application that has a model and services assembly. I\'m trying to figure out how to us开发者_开发百科e the Windsor container to resolve local (services in the service layer) depende[详细]
2023-04-10 20:09 分类:问答