• This is known as constructor injection.

    称为构造器注入

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

  • OpenEJB will also support constructor injection, which enables the container to provide various classes and objects at run time.

    OpenEJB支持构造器注入从而使得容器可以运行提供各种对象

    youdao

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

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

    youdao

  • 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.

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

    youdao

  • You should define your bean definition as shown in Listing 7. Using implicit sca references and properties are not supported for constructor injection in Tuscany.

    应该清单7那样定义beanTuscany中支持构造函数使用隐式sca引用属性

    youdao

  • Again, these setters are framework induced boilerplate code. Wouldn’t it be nice if they could be avoided without the need to use Constructor injection everywhere?

    毫无疑问,这些setter框架所需样板代码如果使用构造器注入避免一点岂不美哉?

    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

  • The EJB 3.0 specification talks about public field injection and setter injection, but constructor injection will enable you to avoid creating setters for values you don't expect to change.

    EJB 3.0规范谈到公共字段注入setter注入,构造器注入使可以避免预期不会更改创建setter

    youdao

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

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

    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

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

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