With bindings like you have declared, how is Guice to decide wich class to use when you ask for ComponentBound? Have you thought about this?
Regards, Witold Szczerba --- Sent from my mobile phone. On Feb 10, 2013 11:10 AM, "Satish Pokhrel" <[email protected]> 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.
