When using dependency injection there is usually a configuration mechanism or architecture for deciding which implementation gets injected into an object.
当使用依赖注入时,通常会有一个配置机制或是某个特定架构,以决定哪个实现将被注入到一个对象中。
They also explore problems with common idioms such as the static singleton anti-pattern and solutions using dependency injection, and examine scopes for web applications and other purposes.
5 - 6章还探究了一些常见问题例如静态单例反模式以及使用依赖注入的解决方案,并调查了web应用和其它应用的范围。
Since we are using IoC, we also want to apply the principle to the framework we are using and be able to wire together the different parts of our application using Dependency Injection (di).
因为我们使用了IoC,所以我们还想将该原理应用到我们正在使用的框架上,同时我们想用依赖注入(Dependency Injection,即DI)对应用的不同部分进行包装。
It's all achieved through dependency injection using configuration files.
这是通过使用配置文件进行依赖性注入实现的。
However, this would be unnecessary scaffolding that can be avoided by using a dependency injection framework like Blueprint.
然而这将是不必要的框架,可通过使用Blueprint这样的依赖性注入框架来避免。
Using a combination of declarative services and dependency injection, this will acquire workbench services using OSGi services rather than accessing known singletons
利用声明式服务和依赖注入的结合,工作台服务将使用OSGi服务而不是访问已知的singleton。
Seam wires POJO components together using a popular design pattern known as "dependency injection" (DI).
Seam通过使用一个流行的、被称作依赖注入(DI)的设计模式联结所有POJO组件。
Injecting dependencies into its own objects using the dependency injection service.
通过依赖注入服务将依赖注入到自己的对象中。
The main benefit for PureMVC users is a consequence of using the dependency injection pattern when dealing with dependencies.
对于PureMVC用户来说,主要的好处是当遇到依赖时可以使用依赖注入。 同时这也是最大的缺点,因为DI的使用不可避免地会改变一些原始的PureMVC使用习惯,而这些习惯是基于服务定位器模式的。
It's built from the ground up using a dependency injection container.
它是使用依赖性注入容器从头构建的。
These beans are tied together using the dependency Injection mechanism
使用依赖项注入机制可以将这些Bean绑定在一起
These beans are tied together using the dependency Injection mechanism
使用依赖项注入机制可以将这些Bean绑定在一起
应用推荐