Open GoogleCodeExporter opened 9 years ago
I also met exactly the same problem, i'm using gwt-test-util with gin support,
and i use assist in the gin module.
Original comment by julyg...@gmail.com
on 2 Mar 2012 at 5:21
Forgot to mention:
There is a workaround, don't use the GinModuleAdaptor( Module ) but use the
constuctor with the second Set<FactoryModule> parameter and make sure you
provide it with a modifiable Set.
Original comment by david.nouls
on 2 Mar 2012 at 7:34
I have the same issue, and when I try the workaround I get tons of errors
saying that all my factories are not bound. I tried looking through the
source, and it looks like the gin factory modules are never used for binding.
How do I get around this?
Original comment by toucansa...@gmail.com
on 3 Apr 2012 at 11:23
As described in my comment 2. Use new GinModuleAdapter( module, new
HashSet<FactoryModule>()). This will break when a new GIN is released, but at
that time you can remove the second parameter again since it seems to be fixed
in trunk.
Original comment by david.nouls
on 4 Apr 2012 at 6:43
I have the same problem as toucansam99. The workaround by David doesn't work
for me. The factories for assisted injection work fine in Gin, but are not
present Guice. I've also tried using the latest trunk (r241) build, but the
problem still remains.
Maybe this feature has just not been implemented yet. I've tried looking
through the latest source code, but all I could find was some code "filtering
out fake factory modules" (in BinderAdapter#install(GinModule)), which is never
called by the GinModuleAdapter.
Does someone have a fix/patch or a reasonable workaround?
Original comment by johannes...@googlemail.com
on 17 Apr 2012 at 7:45
Still a problem in Gin 2.1.2 - assisted injection just won't work in Guice
using GinModuleAdaptor. The suggested workaround of supplying an empty
Set<FactoryModule> won't work any more because now the GinModuleAdaptor
constructor wants a GinjectorBindings object, and I don't see how to make one
of those. :-(
Original comment by roy.pate...@gmail.com
on 4 Dec 2013 at 12:52
Original issue reported on code.google.com by
david.nouls
on 27 Feb 2012 at 2:45