Hey Satish, look for the Multibinder https://code.google.com/p/google-guice/wiki/Multibindings
Cheers Chris Am 10.02.2013 11:10, schrieb Satish Pokhrel: > 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.
