首页 / 词典 / good

Guice

  • n.盖斯
GuiceGuice
  1. Like Spring , Guice can bind services in a request scope .

    与Spring一样,Guice能够在请求的作用域内绑定服务。

  2. Provider methods are an excellent way to integrate other libraries into your Guice module .

    provider方法是将其他库集成到Guice模块中的很好方式。

  3. In Google Guice , you might have code similar to Listing 7 .

    在GoogleGuice中,您可以获得类似于清单7的代码。

  4. Finally , Sitebricks is built directly on top of Guice .

    最后,我想说的是Sitebricks直接构建在Guice之上。

  5. The other key addition is that of Guice , which performs instance injection .

    另一个新增的关键特性是Guice,​用它来做实例注入。

  6. I hope you 'll consider adding Guice to your toolkit .

    我希望您会考虑将Guice添加到工具包中。

  7. This is the first way of getting Guice to construct your objects : asking explicitly .

    这是Guice构造对象的第一种方式:显式询问。

  8. Like Guice , it makes aggressive use of annotations to keep configuration as part of the code .

    它像Guice一样大量使用注释将配置作为代码的一部分。

  9. If you 're familiar with Guice , the code above should look familiar .

    如果您熟悉Guice,上述代码应该会看起来很眼熟。

  10. This means it won 't interfere with applications'use of Spring , Guice , etc.

    这就意味着它不会影响应用使用Spring、Guice等。

  11. By default , Guice creates a new instance of each dependency you ask for .

    默认情况下,Guice为每个请求的依赖项创建一个新实例。

  12. You will not have to create or edit a lot of XML files to use Guice .

    要使用Guice,不需要创建或编辑大量XML文件。

  13. Guice is a dependency injection ( DI ) framework .

    Guice是一个依赖项注入(DI)框架。

  14. Guice offers you an option when you select scopes .

    在选择作用域时,Guice提供了一个选项。

  15. The example created in this article was built using Google Guice , a dependency injection framework written in Java .

    本文创建的示例是使用GoogleGuice构建的。GoogleGuice是用Java编写的依赖项注入框架。

  16. Now that Guice knows that your hero needs a Vehicle , it needs to know which Vehicle to provide .

    Guice知道您的hero需要一个Vehicle后,它需要知道提供什么Vehicle。

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

    熟悉一下Guice或Spring等其他依赖注入框架会很有用。

  18. The annotation provides a nice clue that Guice will participate in the construction of the class .

    这个注释恰当地指出了Guice将参与构建类。

  19. The binding annotation is necessary here because otherwise , Guice couldn 't tell different Strings apart .

    这里有必要使用绑定注释,否则Guice将不能区分不同的String。

  20. In this case , Guice uses your @ Provides method because it 's the registered way to construct a new Hero .

    在本例中,Guice使用@Provides方法,因为它是构建新Hero的注册方式。

  21. The @ Inject tag takes on meaning only when you ask Guice to construct your class .

    @Inject标记只在您要求Guice构建类时才有意义。

  22. Tell Guice which dependency you want

    告诉Guice您需要哪个依赖项

  23. I think Dependency Inversion is so important that I want to invert the dependencies on Guice !

    我认为依赖倒置非常重要,因此打算转换对Guice的依赖。

  24. To keep the work manageable , you can store the Guice Injector somewhere and call it directly .

    为了使工作易于管理,可以将GuiceInjector存储在某处并直接调用它。

  25. Another example is the Guice Servlet extension of Google Guice ( a dependency injection library ) .

    另一个示例是GoogleGuice的GuiceServlet扩展(一个依赖项注入库)。

  26. I hope to continue in the same vein in this article by making it really easy for you to learn Guice .

    我希望本文能帮助您轻松学习Guice。

  27. Let 's dive into Guice , starting with the @ Inject annotation and modules .

    现在让我们从@Inject注释和模块开始深入讨论Guice。

  28. According to the Guice best practices guide , constructor injection is the preferred way to ask for your dependencies .

    根据Guice的最佳实践指南,构造函数注入是询问依赖项的首选方式。

  29. However , the most direct influences are the contextual state management model of Seam and the type safe dependency injection model of Guice .

    但是,最最直接的影响来自于Seam的上下文状态管理模型和Guice的类型安全依赖注入。

  30. There are some static analysis tools we use to describe and analyze application structure ( like Guice 's grapher , for example ) .

    我们有一些分析工具用来描述和分析应用结构(例如,Guice的grapher)。