Re: Strange error message while binding.

2013-12-18 Thread Jochen Wiedmann
Thanks again, you've been hitting the spot: The implementation was abstract. But, I guess, this error message leaves room for improvement... On Wednesday, December 18, 2013 2:41:01 PM UTC+1, Stuart McCulloch wrote: > > On 18 Dec 2013, at 13:34, Jochen Wiedmann > > wrote: > > Thanks, Stuart, >

Re: Strange error message while binding.

2013-12-18 Thread Stuart McCulloch
On 18 Dec 2013, at 13:34, Jochen Wiedmann wrote: > Thanks, Stuart, > > okay, that's understood. But, what is the error? Note, that I was binding > PropertyFactory (an interface), but the error message indicates that > PropertyFactoryImpl (the implementation) wasn't bound? What does PropertyFac

Re: Strange error message while binding.

2013-12-18 Thread Jochen Wiedmann
Thanks, Stuart, okay, that's understood. But, what *is* the error? Note, that I was binding PropertyFactory (an interface), but the error message indicates that PropertyFactoryImpl (the implementation) wasn't bound? Jochen On Wednesday, December 18, 2013 1:11:48 PM UTC+1, Stuart McCulloch wr

Re: Strange error message while binding.

2013-12-18 Thread Stuart McCulloch
On 18 Dec 2013, at 08:30, Jochen Wiedmann wrote: > I was able to reduce the problem down to the following: > > final Module module = new Module(){ > public void configure(Binder binder) { > > binder.bind(PropertyFactory.class).to(PropertyFactoryImpl.class).in

Re: Strange error message while binding.

2013-12-18 Thread Jochen Wiedmann
I was able to reduce the problem down to the following: final Module module = new Module(){ public void configure(Binder binder) { binder.bind(PropertyFactory.class).to(PropertyFactoryImpl.class).in(Scopes.SINGLETON); } }; Guice.crea

Re: Strange error message while binding.

2013-12-17 Thread Stephan Classen
could you post the configure method of your CoreModule On 12/17/2013 12:14 PM, Jochen Wiedmann wrote: Hi, in a module, I get the error message: com.google.inject.CreationException: Guice creation errors: 1) No implementation for com.foo.PropertyFactoryImpl was bound. at com.foo.CoreModul

Strange error message while binding.

2013-12-17 Thread Jochen Wiedmann
Hi, in a module, I get the error message: com.google.inject.CreationException: Guice creation errors: 1) No implementation for com.foo.PropertyFactoryImpl was bound. at com.foo.CoreModule.configure(CoreModule.java:66) While that message might make perfect sense when injecting a value, it oc