Re: Does ProviderFoo call un-annotated default constructors?

2015-04-06 Thread Nate Bauernfeind
You probably want to call: binder.requireExplicitBindings() in your Guice Module to catch these kinds of errors earlier than later. There are other methods that might solve your needs (like requireAtInjectOnConstructors), see:

Does ProviderFoo call un-annotated default constructors?

2015-04-06 Thread Kevin Burton
I just ran into this today and think it might be a bug? I have a ProviderFoo which kind of implies that it would be explicitly setup in a binding. But it looks like the default constructor was being called. This was giving me an non-started ActiveMQ broker which wasn't working. Doesn't

Re: Does ProviderFoo call un-annotated default constructors?

2015-04-06 Thread Tim Boudreau
Show us the code - it's not clear what your problem is. Whose default constructor is being called - Foo or the provider you wrote? Or did you not write a provider? -Tim -- You received this message because you are subscribed to the Google Groups google-guice group. To unsubscribe from this

Re: Does ProviderFoo call un-annotated default constructors?

2015-04-06 Thread Kevin Burton
NICE ... that's probably just what I need! On Monday, April 6, 2015 at 12:21:18 PM UTC-7, Nate Bauernfeind wrote: You probably want to call: binder.requireExplicitBindings() in your Guice Module to catch these kinds of errors earlier than later. There are other methods that might solve