I have an project that is using 1.0 still and I found an odd behavior that I 
wanted to ask about and see if it is different in 2.0. The issue is when asking 
for different sides of a binding. Here's my binding code:

bind(MyInterface.class).to(MyImpl.class).asEagerSingleton();

The interesting thing is that these two lines of code return different 
instances:

injector.getInstance(MyInterface.class);
injector.getInstance(MyImpl.class);

Is this expected behavior? If not, does this behavior exist in 2.0? If so, can 
someone explain to me why this is expected?

Thanks,
-bp

-- 
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