This content has been marked as final.
Show 4 replies
-
1. Re: Problems with @Inject annotation
dobermai Nov 17, 2011 6:43 AM (in response to lenno)Do you Inject your AnyPresenter when using it? It is important, that the container is responsible for managing the Presenter. Dependendy Injection will not work if you do e.g. "new AnyPresenter()".
-
2. Re: Problems with @Inject annotation
csa Nov 17, 2011 10:54 AM (in response to lenno)For classses other than the EntryPoint (like your AnyPresenter) you need an @ApplicationScoped annotation, and like Dominik mentioned above, you also need an injection point to use them.
-
3. Re: Problems with @Inject annotation
lenno Nov 18, 2011 2:52 PM (in response to lenno)Thanks for the advice. I will fix that next week.
Cheers
-
4. Re: Problems with @Inject annotation
davidka Feb 22, 2012 11:24 AM (in response to lenno)Hi,
did you solved the problem already?
I tried the above mentioned solution (injecting the presenter and use @ApplicationScoped for it) without success
Could you also provide some proper snippets?