控制反转模式(也称作依赖性介入)的基本概念是:不创建对象,但是描述创建它们的方式。
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.
后者是著名的控制反转(inversion of 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.
应用推荐