• For DI to work, you must have an interface whose concrete class you can inject into the consumer of the behavior you desire.

    为了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

  • With DI, you can allow the container to inject the appropriate customer class either by configuring the container or implementing the injection in the code.

    使用DI可以通过配置容器代码中实现注入容器注入适合客户

    youdao

  • They prefer that a class be totally ignorant of the DI framework.

    他们更喜欢一个完全忽略DI框架

    youdao

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

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

    youdao

  • A service container is a class which helps you managing all these services (classes which have dependencies), without a container you can't have DI.

    服务容器可以帮助管理所有这些服务(依赖关系),没有一个容器,不能

    youdao

  • DI enables you to inject objects into a class, instead of relying on the class to create the object itself.

    DI使能够对象注入中,而不是依靠创建对象本身

    youdao

  • Why does this DI code declare a method-scope var and then assign it to a static, class-level object?

    为什么代码声明个方法范围变量并其分配给一个静态的,类级别的对象?

    youdao

  • The Di Zi Gui class for parents will be changed to every other Saturday afternoon, twice a month.

    弟子课程改成周上课,每月两次

    youdao

  • Personal expertise can not be qualified for positions they bear. 3. Frail incompetent or performance as the C class Di.

    身体衰弱不能胜任工作的,考绩列为

    youdao

  • Personal expertise can not be qualified for positions they bear. 3. Frail incompetent or performance as the C class Di.

    身体衰弱不能胜任工作的,考绩列为

    youdao

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

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

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