Sounds like magic hand-waving to me. You should avoid the use of 'new' when possible and just ask the Injector for a new instance. Then Guice takes care of everything else for you. On a side note, I wonder if this is AOP or compile-time code injection?
-bp On Oct 4, 2010, at 5:48 PM, yarco wrote: > I really like this feature in spring. Will there be support for it (i > know about injectMembers in Guice)? Its kind of cool to just new A() > and have all members injected automatically. > > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > 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. > -- You received this message because you are subscribed to the Google Groups "google-guice" group. 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.
