Issue 171: bind(SomeConcreteType.class).toConstructor()
http://code.google.com/p/google-guice/issues/detail?id=171
Comment #3 by limpbizkit:
I changed the issue description from "bind(Impl.class).to(Impl.class)
should work"
to "bind(SomeConcreteType.class).toConstructor() That's how I believe we
should solve
this use case.
Binding a type to itself is misleading, since it suggests that
bind(Foo.class).to(RealFoo.class)
means 'bind Foo to the constructor of RealFoo', whereas it really
means 'bind Foo to
the binding for RealFoo'.
See also issue 231.
Issue attribute updates:
Summary: bind(SomeConcreteType.class).toConstructor()
Labels: Milestone-Release2.1
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice-dev" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---