I'm trying to use Google Guice with the @Inject and @Singleton properties as follows:
I have:
- A Module with an empty
configure()
method. - An interface IFoo
- A class Foo (implementing IFoo), annotated with @Singleton, with a parameter-less constructor annotated with @Inject. This is the single annotated constructor.
The classes, constructor and interface are public, and still I'm getting the following error:
No implementation for IFoo was bound.