google-code-export / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
1 stars 0 forks source link

Invisible "injection-loop" #425

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In my case I created "MenuBarPresenter" which contains a nested 
"LogInPresenter". This LogInPresenter will be switched to a nested 
"LogOutPresenter" as soon as the user is logged in.
2. To reveal the "LogOutPresenter" my "LogInPresenter" injects the 
"LogOutPresenter".
3. To reveal the "LogOutPresenter" 2. is implemented the other way around. That 
means my "LogOutPresenter" injects the "LogInPresenter".

What is the expected output? What do you see instead?
No Error no warning, only an invisible "injection-loop". The constructor of the 
"LogOutPresenter" and "LogInPresenter" are calling each other.

What version of the product are you using? On what operating system?
gwtp v.07
Windows 7 64 bit

Please provide any additional information below.

Original issue reported on code.google.com by googleac...@bossmail.de on 13 Jun 2012 at 3:14

GoogleCodeExporter commented 9 years ago
You should use Gin Provider, this will lead to an infinite injection loop that 
is unrelated to GWTP, but Gin and Guice.

Original comment by goudreau...@gmail.com on 9 Jul 2012 at 6:12