Can you explain what you mean with a small amount of code? Can you annotate the assisted inject factories? Maybe you can mix PrivateModule's along with AssistedInject factories to get the effect you're looking for (and potentially exposing the factory with an annotation?).
Nate On Wed, Oct 1, 2014 at 6:38 PM, Brad Micholson <fourofcl...@gmail.com> wrote: > I'm wondering if there's a better way to do this than I'm currently > doing... > > I want to, essentially, bind multiple configurations of a class, based on > an annotation. I don't want a separate class binding for different > annotations; I just want different parameters in the constructor. Right > now, I'm creating multiple providers, which contain differently annotated > parameters. > However, I'd love to be able to use AssistedInject, as I find I'm creating > a ton of factory classes. There doesn't really seem to be a way to do that. > I'd initially thought I could maybe create multiple abstract > implementations of the factory, and annotate the parameters, but it seems > the factory must be an interface... > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-guice/b8e3782d-53f9-42a4-b0d4-8e148c56323d%40googlegroups.com > <https://groups.google.com/d/msgid/google-guice/b8e3782d-53f9-42a4-b0d4-8e148c56323d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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. To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/CAHNex9_zikOCuQ4mZ3sA%3D0H6GRDy%3DTkfhU_Mi%2B%3DKhdjLKheRkw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.