Closed GoogleCodeExporter closed 9 years ago
When you're binding the class in the module (why are you doing that anyhow? :)
you override its default binding, i.e. the implicit binding that contains the
@Singleton annotation. If you want to explicitly bind the class in a module you
have to specify its scope (unless you want default), e.g.
bind(MyClass.class).in(Singleton.class);.
Original comment by aragos
on 29 Mar 2011 at 6:19
Ah ok, makes sense! I was binding a class mostly to have all of my
dependencies visually organized in the module. Thanks.
Original comment by dacc.exa...@gmail.com
on 29 Mar 2011 at 6:48
Original issue reported on code.google.com by
dacc.exa...@gmail.com
on 29 Mar 2011 at 5:24