pBinder.bind(myPojoClass).annotatedWith(Names.named("blubb").in(Scopes.SINGLETON);


On 04/09/2014 09:21 AM, Jochen Wiedmann wrote:

Hi,

I know that I can do something like

   final Class<PojoClass> myPojoClass;
   pBinder.bind(myPojoClass).in(Scopes.SINGLETON);

But, assuming that I'd like to have several instances with different names: How would that be achieved?

Thanks,

Jochen

--
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 google-guice+unsubscr...@googlegroups.com.
To post to this group, send email to google-guice@googlegroups.com.
Visit this group at http://groups.google.com/group/google-guice.
For more options, visit https://groups.google.com/d/optout.

--
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 google-guice+unsubscr...@googlegroups.com.
To post to this group, send email to google-guice@googlegroups.com.
Visit this group at http://groups.google.com/group/google-guice.
For more options, visit https://groups.google.com/d/optout.

Reply via email to