On Mon, Oct 21, 2013 at 12:18 PM, Gregory Kick <[email protected]> wrote:

> As it turns out, when you're generating code, assisted injection doesn't
> even need to be part of Dagger (or Guice for that matter).


Yeah, was thinking about this. The reason why assisted injection exists at
all is because Java doesn't support default parameters. If you are able to
generate the factory that will instantiate this class, nothing stops the
generator from creating a factory with these fields already initialized
with the correct dependencies.

Curious to see what Guice/Dagger will look like with code generation, keep
us posted!

-- 
Cédric


-- 
Cédric

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to