• 不过Guice作者一样更喜欢构造函数注入

    However, I prefer constructor injection, as do Guice's authors. Here's a quick analysis of the three styles.

    youdao

  • 构造函数注入利用构造函数判断返回具体对象类型

    Constructor injection USES a constructor to determine what type of concrete object to return.

    youdao

  • 根据Guice最佳实践指南构造函数注入询问依赖首选方式

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

    youdao

  • Spring中的构造函数注入允许通过构造函数注入依赖关系。

    Constructor injection in Spring lets you inject your dependencies through class constructors.

    youdao

  • 这个行为DI世界中称作构造函数注入因为实例通过一个构造函数传递

    This behavior is referred to in the DI world as constructor injection, because the instance is passed through one of the constructors.

    youdao

  • 清单5显示GBean定义使用构造函数注入提供Customer引用

    Listing 5 shows a GBean that's defined to use constructor injection to provide a Customer reference.

    youdao

  • 围绕如何执行DI主要有两思想构造函数注入setter注入

    Two major schools of thought revolve around how to perform DI: constructor injection and setter injection.

    youdao

  • HiveMind用户通常优先选择setter注入容器支持构造函数注入

    HiveMind users typically prefer setter injection, but the container also supports constructor injection.

    youdao

  • 接下来看到构造函数注入示例,以及Geronimo部署计划定义容器注入代码方式

    Next, you see an example of constructor injection and how Geronimo's deployment plans define how the container injects code.

    youdao

  • 许多DI支持者愿意采用构造函数注入因为意味着注入永远不会出现依赖存在情况

    Many proponents of DI prefer constructor injection, because it means that the injected class never exists in a state where its dependencies aren't present.

    youdao

  • PicoContainer 流行的使用模型构造函数注入支持setter 注入

    PicoContainer's prevailing usage model is constructor injection, although it also supports setter injection.

    youdao

  • Springbean拥有单个构造函数时,这个针对sca特性目前支持构造函数注入

    The feature pack for SCA currently supports only constructor injection when the Spring bean has a single constructor.

    youdao

  • 如果一个需要某些依赖项的超类可以使用方法注入(构造函数注入会使这种情况变得很复杂)。

    You can also use it if you have a superclass that needs some dependencies. (Constructor injection makes this difficult.)

    youdao

  • 正如在系列第一篇文章解释过构造函数注入表明框架会提供初始化时需要构造函数参数。

    As explained in the first article of this series, constructor injection implies that the framework supplies constructor parameters required by the class upon instantiation.

    youdao

  • 这种实例化涉及到调用默认构造函数随后还要注入依赖关系

    This instantiation involves the default constructor for the class being called, with the injection of dependencies happening afterwards.

    youdao

  • 例如假设使用构造函数calculatorbean注入必需依赖关系(必需的SCA引用)。

    For example, assume you're trying to inject the required dependencies (the required SCA references) for the calculator bean using the constructor.

    youdao

  • Pico程序员首先依靠构造函数进行注入

    Pico programmers rely first on constructors to do injection.

    youdao

  • Spring支持依赖注入——setter构造函数方法注入——总的来说流行的模型setter注入

    Spring supports three types of dependency injectionsetter, constructor, and method injection — but overall, the prevailing model is setter injection.

    youdao

  • 依赖关系通过构造函数注入

    The dependency will be injected through the constructor. You instantiate a container.

    youdao

  • Springbean构造函数中的SCA引用属性注入

    This is the injection of SCA references and properties within Spring bean constructors.

    youdao

  • mock对象注入被测系统构造函数中,通过MockControl对象验证方法验证交互行为从而得出结论。

    The mock object is injected into the constructor of the system under test and the test concludes by verifying this interaction via the verify method of the MockControl object.

    youdao

  • 类似Spring,Pico支持setter注入主要使用构造函数

    Like Spring, Pico also supports setter injection, but the emphasis is strongly on constructors.

    youdao

  • 使用方法时,我们必须记住机制支持访问器注入支持基于构造函数参数注入

    While using this approach we have to remember that this mechanism supports only accessor-based injection, constructor argument based injection is not supported.

    youdao

  • Unity一个轻量级可扩展依赖注入容器支持构造函数属性方法调用注入

    Unity is a lightweight, extensible dependency injection container with support for constructor, property, and method call injection.

    youdao

  • 更多关于构造函数提供参数如果必要的话机制构造对象之后设置对象实例属性的细节,请看”依赖注入”。

    For details about the mechanism for supplying arguments to the constructor (if required) and setting object instance properties after the object is constructed, see Injecting Dependencies.

    youdao

  • Reflexil能够重命名删除注入接口结构枚举事件字段方法构造函数财产程序集引用

    Reflexil is able to rename, delete or inject class, interface, struct, enum, event, field, method, constructor, property or assembly reference.

    youdao

  • Reflexil能够重命名删除注入接口结构枚举事件字段方法构造函数财产程序集引用

    Reflexil is able to rename, delete or inject class, interface, struct, enum, event, field, method, constructor, property or assembly reference.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定