Understanding the need for a DI framework

前端 未结 12 1807
长情又很酷
长情又很酷 2020-12-07 12:39

This might be a naive question. I\'m currently learning the Spring framework and dependency injection. While the basic principle of DI is rather easy to grasp, it\'s

12条回答
  •  清歌不尽
    2020-12-07 13:14

    One thing that most (if not all) DI containers/libraries bring you in addition is the possibility to intercept methods for all instances created through DI.

提交回复
热议问题