Comment by mccu...@gmail.com:

The injector will inject any parameters of the @Provides method so they just have to be bound in the injector, they don't have to be constants as such. However, to supply additional constructor parameters at runtime you'll need to use the AssistedInject extension: http://code.google.com/p/google-guice/wiki/AssistedInject which lets you build a factory to create instances that mix injected and traditional passed-in parameters.

For more information:
http://code.google.com/p/google-guice/wiki/ProvidesMethods

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-guice-dev+unsubscr...@googlegroups.com.
To post to this group, send email to google-guice-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/google-guice-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to