可测试模式:控制反转、分离表现
Testability patterns: Inversion of Control, Separated Presentation
我发现控制反转这个术语的包含面太广。
Swiz的核心是个简单的控制反转框架。
At his core, Swiz is a simple inversion of control framework.
IOC(控制反转)是减少耦合度的主要策略。
IOC (inversion of control) is a key strategy for reducing coupling.
这绝对是一个控制反转或策略模式。
This is definitely a case for Inversion of Control or Strategy Pattern.
您听说过控制反转和依赖注入几乎可以互换使用。
You hear both Inversion of Control and dependency injection used almost interchangeably.
理解控制反转最简单的方式就是看它的实际应用。
The easiest way to understand inversion of control is to see it in action.
使工作流的逻辑集中到抽象类是控制反转的例子。
The centralization of workflow logic into the abstract superclass is an example of inversion of control.
这种情况到了。NET 3.0有所改变,依赖注入与控制反转都是一种特定的要求。
This has changed with.net 3.0, where dependency injection and inversion of control containers are specifically called for.
在功能方面,Seam框架远胜于JSF的基本控制反转 (IOC)容器。
The Seam framework far outclasses JSF's basic inversion of control (IOC) container in terms of functionality.
控制反转(IoC)和依赖项注入(DI)是两种引起极大关注的模式(参见参考资料)。
Inversion of Control (IoC) and Dependency Injection (DI) are patterns that draw a lot of attention (see Resources).
控制反转模式(也称作依赖性介入)的基本概念是:不创建对象,但是描述创建它们的方式。
The basic concept of the Inversion of Control pattern (also known as dependency injection) is that you do not create your objects but describe how they should be created.
NETMVC框架还支持使用依赖项注入(DI)和控制反转(IOC)容器模型。
NET MVC framework also supports the use of Dependency Injection (DI) and Inversion of Control (IOC) container models.
Castle首先以控制反转(IoC)容器开始的,我大概记得好像在2003年到2004之间。
Castle started as home for the Inversion of Control container I had in my mind for like an year, between 2003 and 2004.
DS组件不需要OSGi接口,这样,它可以在其他控制反转模式(如spring)里被模拟来测试或使用。
Ds components needs no OSGi interfaces, and as such, can be mocked for testing or used in other inversion of control patterns like Spring.
NK:控制反转仅仅是一种思想,各种依赖注入(无论有无框架)都取决你设计的软件是否抱有控制反转的目的。
NK: inversion of control is a mindset, and dependency injection of any kind (with or without a framework) relies on your software being designed with the goals of inversion of control in mind.
通过控制反转技术,降低了组件之间的耦合,使框架更加易于扩展,在实际应用中取得了良好的效果。
A inversion of control technique is used to give the benefit of loose coupling and higher extensibility in application.
NK:只有项目中的所有开发人员都使用控制反转,并参与其中,才算得上是成功。正如我所说,这完全是心态问题。
NK: Inversion of control is something that all of the developers on a project have to buy into and participate in to be successful — like I said, it's really a different mindset.
在内心建立用控制反转编写软件的思想,会使得进行单元测试更加容易,因为你可以替换真实实现而在测试中进行模拟。
Writing your software with inversion of control in mind also makes unit testing much, much easier, because you can swap out real implementations for mocks in your tests.
以我的经验来看,一旦一次大的重构变得与实现新版本,以及修改绑定一样简单,那么控制反转的价值就变得更加明显了。
In my experience, once that "big refactoring" becomes as simple as implementing the new version and altering your bindings, the value of inversion of control starts to become more apparent.
在这个系列的前一期中,我介绍了Spring框架的7个模块,包括Spring AOP和控制反转(IOC)容器。
In the previous installment of this series, I introduced the seven modules of the Spring framework, including Spring AOP and the inversion of control (IOC) container.
后者是著名的控制反转(inversionof control,IOC)模式的一种实现,可用于连接委托对象。
The latter is an implementation of the well-known inversion of control (IOC) pattern and can be used to tie in delegate objects.
BeanFactory 使用控制反转 (IOC)模式将应用程序的配置和依赖性规范与实际的应用程序代码分开。
The BeanFactory applies the Inversion of Control (IOC) pattern to separate an application's configuration and dependency specification from the actual application code.
Geronimo基于使用控制反转(Inversionof Control,IoC)技术将组件与服务解耦的架构。
Geronimo is based on an architecture that USES Inversion of Control (IoC) techniques to decouple components and services.
在这个由两部分构成的系列中,我讨论了DI的概念(也叫做控制反转或IoC),然后演示它在ApacheGeronimo中的实现方式。
In this two-part article series, I discuss the concepts of di (also known as Inversion of Control, or IoC), then demonstrate how it's implemented in Apache Geronimo.
软件具有的控制反转反模式越多,那么使用Ninject对代码进行优化就越困难——应该说任何一种依赖注入技术对于这种情况都难以应对。
The more of these inversion-of-control anti-patterns the software has, the more difficult it will be to reshape it to work with Ninject -- or any dependency injection technique, for that matter.
真正使 Geronimo 的体系结构与众不同的是,其在内部使用了大量的称为控制反转(Inversionof Control,IOC)的概念。
What really makes the architecture special is its heavy internal use of a concept called Inversion of Control (IOC).
工厂类和抽象工厂类能够被用做依赖框架,但是已经有了专门的框架,被称为反转控制容器。
Factories and Abstract Factories can be used as dependency frameworks, but there are specialized frameworks for that, known as Inversion of Control Container.
这是一个使用反转控制(IOC)模式进行配置的示例,因此很自然地适合方面。
This is an example of using the Inversion of Control (IOC) pattern for configuration and is a natural fit with aspects.
这是一个使用反转控制(IOC)模式进行配置的示例,因此很自然地适合方面。
This is an example of using the Inversion of Control (IOC) pattern for configuration and is a natural fit with aspects.
应用推荐