The three answers already given each give different views, because it's
not clear what you're using this for. Can you please add to this
example a bit of the dependent code that would use and inject these
bindings? That would help figure out which answer applies to your
situation.
regards,
Christian.
On 10 Feb 2013, at 5:10, Satish Pokhrel wrote:
Hello Everybody,
I want to bind single interface let's say "ComponentBound" and i have
three
classes let say "Class A", "Class B", "Class C". ComponentBound
implements
these three classes. When i try to bind these three classes guice
throws me
an error. What i have done is :
bind(ComponentBound.class).to(A.class);
bind(ComponentBound.class).to(B.class);
bind(ComponentBound.class).to(C.class);
I know i have done here mistake, but how to achieve this :)
PS i am totally new to guice;)
Any help or suggestion would be appreciated :)
Thanks,
Satish
--
You received this message because you are subscribed to the Google
Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.