Is this what you're looking for: 
http://code.google.com/p/google-guice/wiki/InjectionPoints

Injections are performed in a specific order. All fields are injected and 
> then all methods. Within the fields, supertype fields are injected before 
> subtype fields. Similarly, supertype methods are injected before subtype 
> methods.
>
*
*
Of course, constructors are injected before methods and fields, as you have 
to construct an instance before injecting its members.

See also http://code.google.com/p/google-guice/wiki/Bootstrap

On Wednesday, March 7, 2012 10:41:35 AM UTC+1, David Nouls wrote:
>
> Hi,
>  
> I ran into a wall with GIN/Guice when it comes to mixing setter and 
> constructor injection. I could not find any wiki page on the official guice 
> page so I though I should ask the question here (before potentially 
> creating an issue on gin or guice).
>  
> I have an object hierarchy that combines constructor injection and setter 
> injection.
>  
> public class Base {
>    @Inject Base( Something pDependency )
>  
>   @Inject setValidator( Validator validator ) {
>  
>   }
> }
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-guice/-/OsVnLPlETiMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to