控制反转模式(也称作依赖性介入)的基本概念是:不创建对象,但是描述创建它们的方式。
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.
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.
这是一个使用反转控制(IOC)模式进行配置的示例,因此很自然地适合方面。
This is an example of using the Inversion of Control (IOC) pattern for configuration and is a natural fit with aspects.
应用推荐