guice

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自身可用OSGi3.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可以集成SpringGuice支持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.

GuiceEasyMock比較優秀框架它們利用泛型實現突出類型安全

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.

開發人員已經編寫SpringSeamGuice服務適配器

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返回類型請求某個heroGuice進行計算應該調用provider方法提供hero

Write your business logic with session beans, Spring, Guice, or Pojo services.

會話BeanSpringGuicePojo服務業務邏輯

Familiarity with Guice, or with another dependency injection framework such as Spring, would be useful.

熟悉一下GuiceSpring其他依賴注入框架有用

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.

清單15Guice自動使用正確參數注入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著作依賴注入力圖詳細探究依賴注入領域呈現SpringGuice技術著作

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發布日期臨近一些開始比較GoogleGuice框架之間性能差別

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.

意味不會影響應用使用SpringGuice

Finally, Sitebricks is built directly on top of Guice.

最后Sitebricks直接構建Guice之上

You can find more information on Dependency Injection right here on InfoQ!

可以InfoQ依賴注入GuiceSpring專輯找到更多信息

Duskis also created a Guice-style Spring 2. 5 application, and discussed his experience in detail.

Duskis創建一個GuiceSpring2.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).

我們有一些分析工具用來描述分析應用結構例如Guicegrapher)。

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作者一樣更喜歡構造函數注入

熱門查詢