Search code examples
androiddependency-injectionandroid-annotations

AndroidAnnotations and constructor injection


I'm going through androidannotations cookbook and I can't find way to inject dependencies to Bean via constructor.

Is it possible at all with this library? I have everything else up and running, but I just can't fix this single problem :/


Solution

  • AndroidAnnotations does not provide this feature currently. Setter injection maybe added in the next release. Use field injection, if possible.