工厂类和抽象工厂类能够被用做依赖框架,但是已经有了专门的框架,被称为反转控制容器。
Factories and Abstract Factories can be used as dependency frameworks, but there are specialized frameworks for that, known as Inversion of Control Container.
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.
软件具有的控制反转反模式越多,那么使用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.
您听说过控制反转和依赖注入几乎可以互换使用。
You hear both Inversion of Control and dependency injection used almost interchangeably.
控制反转模式(也称作依赖性介入)的基本概念是:不创建对象,但是描述创建它们的方式。
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.
这种情况到了。NET 3.0有所改变,依赖注入与控制反转都是一种特定的要求。
This has changed with.net 3.0, where dependency injection and inversion of control containers are specifically called for.
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.
控制反转(IoC)和依赖项注入(DI)是两种引起极大关注的模式(参见参考资料)。
Inversion of Control (IoC) and Dependency Injection (DI) are patterns that draw a lot of attention (see Resources).
Spring的IOC实现使用依赖性注入有效地将控制从应用程序代码 “反转”到 Spring 容器。
Spring's IOC implementation uses dependency injection to effectively "invert control" from your application code to the Spring container.
反转控制和依赖注入有怎样联系的呢?我之前的文章对他两的解释有些相同点。
So how does inversion of control relate to dependency injection? At first glance the concepts above and my examples in the previous article have little in common.
铁电材料的疲劳特性是影响依赖可反转极化工作的电子器件性能的关键,例如非易失性铁电存储器。
Ferroelectric fatigue is much fatal for the electric apparatus based on the switchable polarization, such as non-volatile random access memories (NVFRAM).
NETMVC框架还支持使用依赖项注入(DI)和控制反转(IOC)容器模型。
NET MVC framework also supports the use of Dependency Injection (DI) and Inversion of Control (IOC) container models.
NETMVC框架还支持使用依赖项注入(DI)和控制反转(IOC)容器模型。
NET MVC framework also supports the use of Dependency Injection (DI) and Inversion of Control (IOC) container models.
应用推荐