go top

网络释义

  Constructor Injection

您可以使用这种叫做构造函数注入constructor injection)的方式把依赖性直接注入到任何bean里,而不需要用先前讲到的setter注入方式。

基于96个网页-相关网页

双语例句

  • 不过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

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

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

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