Hi,
I have narrowed the testcase for
http://code.google.com/p/google-guice/issues/detail?id=249
to the following lines of code:
The module contains:
binder.bind(Key.get(PermanentRedirect.class,
Names.named("RedirectMain"))).in(Scopes.SINGLETON);
The application invokes:
injector.getInstance(Key.get(PermanentRedirect.class,
Names.named("RedirectMain")));
and the exception is thrown. If I remove "in(Scopes.SINGLETON)" I get
a difference exception:
com.google.inject.ConfigurationException: Missing binding to
PermanentRedirect annotated with
@com.google.inject.name.Named(value=RedirectMain).
Can someone help me find a workaround or at least help me understand
what is going wrong inside Guice's code?
Thank you,
Gili
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---