【发布时间】:2014-05-20 14:25:55
【问题描述】:
Spring 是否支持Interface Injection completely?
从“Martin Fowler”博客中提到,依赖于 bean 的组件需要实现为注入 Bean 的 Interface。
当我们考虑这种情况时,BeanNameAware、XXXAware Interfaces 可能会注入适当的 bean 对象。
除了 spring 提供的类之外,是否可以使用 Interface Injection 注入 userdefinedd Bean。
我对以上所有内容感到困惑。
【问题讨论】:
标签: spring dependency-injection inversion-of-control