On Thu, Apr 11, 2013 at 11:43 AM, Newbie McBozo <[email protected]> wrote:

>
> I had 6 parameters required on instantiation, and one necessary injected
> variable that did not need to be private.  Rather than annotate 6 variables
> and have Guice add the 7th, I chose to simply inject the 7th as a member
> variable directly rather than in the constructor.
>

If you're not using assisted injection, then it looks like you must be
instantiating your object by calling new yourself, which means your field
will not get injected (unless you inject it manually after creation, which
you should avoid).

Are you sure what you are describing works?

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


Reply via email to