WebBeans是一个依赖注入框架。
这就是“依赖注入框架”存在的原因。
到了依赖注入框架一展身手的时候了!
This is where the dependency injection framework comes into play.
我可不想让依赖注入框架的代码散布在我的应用当中。
I don't want [Dependency Injection] framework code smeared all through my application.
代码作为配置:类似于驱动依赖注入框架的XML文件。
Code as Configuration: These are things such as an XML file that drives a dependency injection framework.
最终的目的是要创建一个轻便快速,易于使用的依赖注入框架。
To that end, I've tried to create the lightest, fastest, most easy to use dependency injection framework.
对于更大型的程序,我更愿意做外部引用或者使用依赖注入框架。
For larger applications, I prefer to wire in that reference externally or use a dependency injection framework.
熟悉一下Guice或Spring等其他依赖注入框架会很有用。
Familiarity with Guice, or with another dependency injection framework such as Spring, would be useful.
你曾经看到过哪些人们误用依赖注入和依赖注入框架的方式(反模式)?
What are some of the worst ways you've seen people misusing DI and DI frameworks (anti-patterns)?
NK:传统上的依赖注入框架依赖于XML去定义元数据,从而为你的应用程序组成组件。
NK: Dependency injection frameworks have traditionally relied on XML to define the metadata necessary to wire up the components of your application.
新版本减少了对依赖注入框架如Sprint.NET的使用,同时将大量程序集引用减少到只有一个。
The new version includes a decreased footprint on dependency injection frameworks like Spring.NET and the amount of assemblies referenced is reduced to only one.
我希望所有的依赖注入框架在这方面大步的进化,而不是急于支持一些花哨的功能或者当前的习惯。
I would like to see all di frameworks evolve in this area a bit further, rather than rushing to support the fancy library or idiom of the day.
其次,它为平台提供了标准化、注解驱动、类型安全的依赖注入框架,方式类似于GoogleGuice。
Second it provides a standardised, annotation-driven, type-safe dependency injection framework for the platform similar in approach to Google's Guice.
首先,Martin使用Guice (Google推出的依赖注入框架)创建BillingService类的实例。
He first introduces an snippet that USES Guice (Google's Dependency Injection framework) to create an instance of the BillingService class.
InfoQ:现在有一些关于依赖注入框架的著作,但是你的书采用了与其它书不同的方法,每当在深入框架支持之前,你会呈现依赖注入背后的基本概念。
InfoQ: There are several books on di framework specifics, but yours takes a different approach by presenting the fundamental concepts behind di, before looking every time into framework support.
当我听闻这一消息后,就立即加入了这个项目,开始对核心的依赖注入容器以及AOP框架进行移植。
As soon as I heard about it, I joined the project and we started porting the core Dependency Injection container and AOP framework.
虽然在某种意义上依赖注入在技术上并没什么特别的;实际上DI框架所做的就是为对象之间的交互提供一个中枢。
In a sense though dependency injection is not technically particularly interesting; really what DI frameworks do is offer a backbone for interactions between objects.
核心特性如依赖注入(DI)容器、AOP以及数据访问框架,都可以非常好地应用在任意的。NET应用程序中。
Core features, such as the Dependency Injection (DI) container, AOP and the data access framework can be used in pretty much any.net application.
因为我们使用了IoC,所以我们还想将该原理应用到我们正在使用的框架上,同时我们想用依赖注入(Dependency Injection,即DI)对应用的不同部分进行包装。
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).
依赖注入是通过使用像Spring这样的框架来执行的软件模式。
Dependency Injection is a software pattern that is usually implemented through the use of frameworks like Spring.
幸运的是,MartinFowler已经站出来解决这个问题,他与多个框架的构建者合作,把这种形式的解耦命名为依赖注入。
Fortunately, Martin Fowler has come to the rescue and, in collaboration with several framework builders, named this style of decoupling dependency injection.
ObjectBuilder是一个用来构建依赖注入容器的框架。
ObjectBuilder was a framework which was used to build Dependency Injection containers.
这种类型的框架通常称为依赖注入或者Inversion of Control (IoC)架构。
These types of frameworks are usually referred to as dependency injection or Inversion of Control (IoC) architectures.
Spring框架的体系基于依赖注入(DI)设计模式。
The architecture of the Spring framework is based upon the Dependency Injection (DI) design pattern.
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.
几乎所有的现代企业框架都有一个核心的依赖注入组件。
Almost all modern enterprise frameworks have a core DI component to them.
新版本标准化了一组用于依赖注入的注解,使得可注入的类在多个框架之间更容易移植。
A new set of annotations for dependency injection has been standardized, making injectable classes much more portable across frameworks.
这是依赖项注入的基本形式,更完整的形式以Spring这样的框架表示。
This is a rudimentary form of dependency injection, as more fully expressed in frameworks like Spring.
LLBLGenPro框架的依赖注入机制注入了一个注释类的实例到标识了这个规定属性的类型中。
The Dependency Injection mechanism of the LLBLGen Pro framework injects instances of annotated classes into the types specified in the attribute.
作为一个简单依赖性注入框架,Blueprint对于We b容器与Blueprint容器之间的桥接存在完全相同的问题。
Blueprint as a plain dependency injection framework has exactly the same problem with bridging between the Web container and the Blueprint container.
应用推荐