• The initialization code in Listing 2 is part of a class that uses setter injection for DI.

    清单2中的初始化代码一个一部分,它使用setter注入进行DI

    youdao

  • To facilitate this setter injection, I've registered set methods for both my properties.

    为了方便这个setter注入两个属性注册了set方法

    youdao

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

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

    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

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

  • The alternative (and more widely used) behavior is setter injection, where dependent classes are injected through set methods.

    一种(也是使用广的)行为setter注入这种注入中,通过set方法注入依赖

    youdao

  • The customer class shown in Listing 3 is a good example of a class that USES setter injection.

    清单3customer使用setter注入类的良好示例

    youdao

  • Listing 4 shows what the CustomerFinder interface would look like if setter injection were used instead.

    清单4显示了使用setter注入CustomerFinder接口样子

    youdao

  • Dependency injection can occur in a variety of ways, for example, via a setter method or a class variable.

    依赖性的引入可以多种方式出现例如通过设置属性值方法或者变量

    youdao

  • Setter injection injects types through set() methods.

    Setter注入通过set() 方法注入类型

    youdao

  • Dependency injection can occur in a variety of ways, such as through a setter method or a class variable.

    依赖项注入可以通过多种方式进行例如通过setter方法变量

    youdao

  • Type 2 or setter injection, in which the dependent module exposes a setter method which the framework USES to inject the dependency.

    类型2设置注入,使用者暴露一个设置器方法框架将使用此方法注入依赖项

    youdao

  • Type 2 or setter injection, in which the dependent module exposes a setter method which the framework USES to inject the dependency.

    类型2设置注入,使用者暴露一个设置器方法框架将使用此方法注入依赖项

    youdao

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

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

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