guice
美
英 
例句
According to the Guice best practices guide, constructor injection is the preferred way to ask for your dependencies.
根據Guice的最佳實踐指南,構造函數注入是詢問依賴項的首選方式。
If you don't ask Guice to create FrogMan, the annotation has no effect on the code's behavior.
如果不要求Guice構建FrogMan,這個注釋對代碼行為就沒有任何影響。
Note that Guice can be used in OSGi without Sisu; the 3. 0 release provides standard OSGi interoperation out of the box.
需要注意的是,沒有Sisu,Guice自身既可用在OSGi中;其3.0版本提供了開箱即用的標準的OSGi互操作性。
Unlike Guice, our DI has a concept of scope lifecycle which is very important for a framework like Cayenne.
與Guice不同的是,我們的DI有作用域生命周期的概念,這個概念對Cayenne這樣的框架來說非常重要。
However, the most direct influences are the contextual state management model of Seam and the type safe dependency injection model of Guice.
但是,最最直接的影響來自于Seam的上下文狀態管理模型和Guice的類型安全依賴注入。
One effective refactoring strategy is to introduce to the application a dependency injection 16 container like Spring or Google Guice.
有效重構的一個戰略,是向程序引入一個依賴注射16容器,例如Spring或者GoogleGuice。
Interesting - the tie in to Seam is obvious, but this is the first I've seen of any involvement from the Guice team. . .
非常有趣——其中與Seam有明顯的聯系,但這是我第一次看到任何與Guice團隊有牽連的東西……
This means Guice will keep the refinery around, and whenever another instance requires a fuel source, Guice will inject the same refinery.
這意味著Guice會一直保持“提煉廠”可用,只要另一個實例需要燃料源,Guice就會注入相同的“提煉廠”。
All three versions of FrogMan exhibit the same behavior: Guice injects the appropriate Vehicle when they're constructed.
三個FrogMan版本都展示了相同的行為:Guice在構建時注入相應的Vehicle。
Currently, Jersey can integrate with Spring, Guice, and can support ATOM representation with apache-adbera integration.
目前,Jersey可以集成Spring、Guice,還支持ATOM表示形式與apache-adbera的集成。
Guice and EasyMock stand out as two frameworks I have been using that have used the power of generics to implement extraordinary typesafety.
Guice和EasyMock是我用過的比較優秀的兩個框架,它們利用泛型實現了突出的類型安全。
Guice and other DI frameworks serve as flexible "super factories" that you configure to build your objects.
Guice和其他DI框架可作為“超級工廠”,您可以通過配置它們來構建對象。
Developers have contributed Spring, Seam and Guice service adapters.
開發人員已經編寫了Spring、Seam、Guice服務適配器等。
You rely on Guice to provide your dependencies, even when you're configuring your Guice module itself.
您依靠Guice來提供依賴項,即使是配置Guice模塊本身。
Based on the return type of Hero, it works out that when you ask for a hero, it should call this method to provide it.
根據Hero的返回類型,在您請求某個hero時,Guice會進行計算,它應該調用provider方法來提供hero。
Write your business logic with session beans, Spring, Guice, or Pojo services.
用會話Bean、Spring、Guice或Pojo服務寫業務邏輯。
Familiarity with Guice, or with another dependency injection framework such as Spring, would be useful.
熟悉一下Guice或Spring等其他依賴注入框架會很有用。
To keep the work manageable, you can store the Guice Injector somewhere and call it directly.
為了使工作易于管理,可以將GuiceInjector存儲在某處并直接調用它。
Let's dive into Guice, starting with the @Inject annotation and modules.
現在讓我們從@Inject注釋和模塊開始深入討論Guice。
Guice automatically injects the provider method in Listing 15 with the correct arguments.
在清單15中,Guice自動使用正確的參數注入provider方法。
by Dhanji R. Prasanna is a book that tries to explore the DI idiom in detail, and present techniques in Spring and Guice.
DhanjiR.Prasanna的著作《依賴注入》是一本力圖詳細探究依賴注入領域,并呈現Spring和Guice技術的著作。
Like Guice, it makes aggressive use of annotations to keep configuration as part of the code.
它像Guice一樣大量使用注釋將配置作為代碼的一部分。
Guice calls this method immediately after it constructs my hero.
Guice會在構造好hero之后立即調用此方法。
Dhanji: Sure, the primary principles are conciseness and type-safety, just like Guice.
Dhanji:當然可以。主要的原則就是簡潔與類型安全,就像Guice那樣。
If you're familiar with Guice, the code above should look familiar.
如果您熟悉Guice,上述代碼應該會看起來很眼熟。
Provider methods are an excellent way to integrate other libraries into your Guice module.
provider方法是將其他庫集成到Guice模塊中的很好方式。
Guice offers you an option when you select scopes.
在選擇作用域時,Guice提供了一個選項。
With Spring 2. 5 nearing release, some people have compared it's performance to Google's Guice framework.
隨著Spring2.5發布日期的臨近,一些人開始比較它和Google的Guice框架之間的性能差別。
This is the first way of getting Guice to construct your objects: asking explicitly.
這是Guice構造對象的第一種方式:顯式詢問。
With Guice 2. 0 we even support a DSL to intuitively map servlets and filters to URL paths in web applications.
在Guice2.0中我們支持一個DSL可以在web應用中將servlet和過濾器映射到URL路徑。
This means it won't interfere with applications' use of Spring, Guice, etc.
這就意味著它不會影響應用使用Spring、Guice等。
Finally, Sitebricks is built directly on top of Guice.
最后,我想說的是Sitebricks直接構建在Guice之上。
You can find more information on Dependency Injection right here on InfoQ!
你可以在InfoQ的依賴注入,Guice和Spring專輯找到更多信息!
Duskis also created a Guice-style Spring 2. 5 application, and discussed his experience in detail.
Duskis還創建了一個Guice式的Spring2.5應用,并且詳細論述了二者的差別。
You will not have to create or edit a lot of XML files to use Guice.
要使用Guice,不需要創建或編輯大量XML文件。
I think Dependency Inversion is so important that I want to invert the dependencies on Guice!
我認為依賴倒置非常重要,因此打算轉換對Guice的依賴。
However, Guice cares only about @Inject; your method can be named anything you like, and it can take multiple parameters.
不過,Guice只關心@Inject;您可以任意命名這個方法,它可以帶有多個參數。
There are some static analysis tools we use to describe and analyze application structure (like Guice's grapher, for example).
我們有一些分析工具用來描述和分析應用結構(例如,Guice的grapher)。
Providers shouldn't be confused with provider methods. (In Guice 1. 0, they were considerably harder to tell apart. )
不要把提供者與provider方法弄混淆了(在Guice1.0,這兩者更難區分開來)。
However, I prefer constructor injection, as do Guice's authors. Here's a quick analysis of the three styles
不過,像Guice的作者一樣,我更喜歡構造函數注入。