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 [email protected].
To post to this group, send email to [email protected].
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to