Hi Jan, On Wed, Oct 7, 2009 at 4:59 PM, Jan Kriesten <kries...@mail.footprint.de>wrote:
> > Hi Haim, > > I think you read the article from Jonas Bonér about DI with Scala [1]? > yes of course :) > > In the paragraph about Guice you'll stumble over my name and my preferred > way to > DI with Wicket. > Yes, I remember seeing that. How would you add it to wicket? by adding ServiceInjector trait to the Application class or using the wicket-guice way (addComponentInstantiationListener(new GuiceComponentInjector(this));)? One more question though, In the example you're only using constructor injection. Any reason not to use field injection? In java the reason is to allow final variables, but I think I read somewhere that in scala you can inject to lazy vals. Thanks for the help -- Haim