Might as well bind to a proper Provider class, and implement whatever retry logic you wish to use within the implementation of get(). In other words, eschew the shortcut provider method for this one.
-Fred 2010/3/1 Agustín Bartó <[email protected]> > I have a request scoped injection that is fulfilled by a provider > method. The thing is that, this method might or might not return the > object depending if it was able to contact a web service or not (I'm > injecting the client). > > Is there a way to Guice to "retry" the injection? Right now the webapp > fails altogether when the provider fails. > > Agustin > > -- > 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]<google-guice%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-guice?hl=en. > > -- 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.
