google-code-export / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
2 stars 1 forks source link

AbstractModule's JavaDoc contains bad scope example #325

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
bind(Service.class).to(ServiceImpl.class).in(Singleton.class);

should be

bind(Service.class).to(ServiceImpl.class).in(Scopes.SINGLETON);

Original issue reported on code.google.com by mathias....@gmail.com on 6 Feb 2009 at 7:05

GoogleCodeExporter commented 9 years ago
Actually, in(Singleton.class) is the preferred mechanism. Note that 
Singleton.class refers to the scoping 
annotation for @Singleton.

Original comment by limpbizkit on 7 Feb 2009 at 1:32