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