hi

i have a question about .in scoping:

i used to bind against interfaces like:
bind(NewsService.class);

with

@ImplementedBy(NewsServiceImpl.class)
public interface NewsService ...

now it looks like changing to
bind(NewsService.class).in(Scopes.SINGLETON);

has no effect, while

bind(NewsService.class).to(NewsServiceImpl.class).in(Scopes.SINGLETON);

does. is this intended !? (using Guice1.0 as released)

cu uwe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to