AndroidAnnotations和构造函数注入

时间:2015-09-16 18:17:16

标签: android dependency-injection android-annotations

我正在浏览androidannotations cookbook,我找不到通过构造函数向Bean注入依赖项的方法。

这个库有可能吗?我已经完成了所有其他工作,但我无法解决这个问题:/

1 个答案:

答案 0 :(得分:0)

AndroidAnnotations does not provide this feature currently。可以在下一个版本中添加Setter注射剂。 如果可能,请使用现场注入。