Updates:
Status: WorkingAsIntended
Comment #1 on issue 791 by sberlin: Multibinder Bindings Don't Always
Respect Singleton Scope
http://code.google.com/p/google-guice/issues/detail?id=791
Use a separate bind(B.class).in(Singleton.class) to make this work. What
is happening is that you're making linked binding a singleton, but not the
underlying binding a singleton.
The same thing would happen if you did:
bind(Foo.class).to(FooImpl.class).in(Singleton.class);
and then tried to compare injecting Foo vs injecting FooImpl. Injecting
Foo multiple times would be the same, but it'd be a different instance than
FooImpl, because "Foo" is the singleton, not "FooImpl".
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/groups/opt_out.