Hello, I injected a provider for a class with @Named parameter, if there is no implementation bound to that class, when I call method get() of the provider it throws the following exception:
1) No implementation for java.lang.Class<? extends org.apache.wicket.Page> annotated with @com.google.inject.name.Named(value=SignOutPage.RedirectPage) was bound. while locating com.google.inject.Provider<java.lang.Class<? extends org.apache.wicket.Page>> annotated with @com.google.inject.name.Named(value=SignOutPage.RedirectPage) Shouldn't be interesting to have an implementation of the method get with a parameter optional, meaning if optional == true and there is no class or instance bound to it, it returns null instead of an exception? Thanks, Eduardo S. Nunes --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
