Closed GoogleCodeExporter closed 9 years ago
I'll fix this problem (provider method did not exist when I first wrote the
@TestScoped annotation). Til then, you can work around this in your "bind"
statement
instead of the provides method:
bind(Foo.class).to(Bar.class).in(TestScoped.class)
Original comment by zorze...@gmail.com
on 12 Nov 2008 at 4:06
More precisely, the workaround is to create a Provider class and
bind(Foo.class).toProvider(FooProvider.class).in(TestScoped);
(i.e. not use, for this one binding, a provider method). The truth is that
provider
methods are not yet "officially released"... Guice 2.0 is coming in a couple of
months, I think.
Anyway I'll release the "fix" soon.
Original comment by zorze...@gmail.com
on 12 Nov 2008 at 5:00
Fixed in release 1.2.3
Original comment by zorze...@gmail.com
on 22 Jan 2009 at 5:45
Original issue reported on code.google.com by
lazer...@gmail.com
on 31 Oct 2008 at 12:06Attachments: