On Mon, 18 Feb 2008, James Carman wrote: > Doesn't that go against the whole idea of Dependency Injection (the > "Hollywood Principle")? Objects needing their dependencies shouldn't > have to ask to be injected.
I thought so at first, but later on (and after using this extensively) I have realised that there is a small but significant difference: the object needing the dependencies declares them on a conceptual level (interfaces maybe) and what the actual implementations are is declared elsewhere. wicket-spring approach has proven very powerful. The list of @SpringBeans is much like a list of constructor arguments (possibly for final fields). Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oy <URL: http://www.ri.fi/ > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
