English 中文(简体)
工厂与春天回来的新通话
原标题:Factory configured with Spring returning new Instances for calls at Runtime

在一个每台电话上报新例的工厂(在配置和背景创建之后)中,是否容易使用春 I?

我更希望避免对春天有强烈的依赖,也希望避免,避免每次打上GetObject(“myFacobj”)。 我正在寻找像方法点注射这样的东西(正如我在C而不是C#制定方案时所做的那样)。

是否可能向一家使用春天的工厂电话派出一名代表?

https://stackoverflow.com/questions/7039144/how-to-inject-predicate-and-func-in-children-net>。 如何在春季.net上注入有关代表的注射的预示和富奇(Func<>......),但我倾向于在可能的情况下采用“Spring-Built-In-Solution”。

最佳回答

Spring.NETsupport method injection, 这种方法可以很好地加以应用。

我在上刊登了地雷的其他答案,即:你如何使用喷射方法作为替代使用context.GetObject(......)的替代办法,以便你不必带上集装箱。

问题回答

暂无回答




相关问题
Spring.NET & Immediacy CMS

Is there any way to inject dependencies into an Immediacy CMS control using Spring.NET, ideally without having to use to ContextRegistry when initialising the control?

caching per request in ASP.NET?

I m using both IBatis.NET and Spring.NET on a project at work and I d like to figure out if I can leverage both/either frameworks to achieve "per-request caching" on all calls into my DAL layer. In ...

a. 单位测试一个有多个受扶养人的WCF服务

我当然希望有人能够帮助缓解我的沮丧。 我正试图找到一种很好的办法,对我的“全球合作框架”服务执行班进行测试,但我发现提供解决办法的每一项资源都是......。

spring.net validation

I m trying to use the Spring.net framework for the first time. I would like to use its validation capabilities. I m currently trying to validate business objects, so I have defined several validators (...

NHibernate 2.1.1 references an older version of Spring

NHibernate 2.1.0 references Spring 1.3.0. NHibernate 2.1.1 references Spring 0.0.0.2. Is there any special reason for that? I upgraded to NHibernate 2.1.1 and now I m getting Assembly loading errors....