Pages

Wednesday, April 13, 2011

Bind an interface to more than one class using Guice

Normally you can bind an interface to only one class. But this would not be enough for an application, because we want to use a same interface to bind with more than once class we can achieve this using BindingAnnotation in Guice. A more simplistic example here.

No comments:

Post a Comment