Comment #1 on issue 751 by [email protected]: Guice is injecting members
when binding an instance [bind().toInstance()].
http://code.google.com/p/google-guice/issues/detail?id=751
Yes it is expected:
http://code.google.com/p/google-guice/wiki/Injections#Automatic_Injection
You can use the
http://google-guice.googlecode.com/git/javadoc/com/google/inject/util/Providers.html#of(T)
utility method to skip this automatic injection. Alternatively add a
@Provides method that returns the instance in your module:
http://code.google.com/p/google-guice/wiki/ProvidesMethods
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.