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.

On 2/18/08, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:
> On Mon, 18 Feb 2008, James Carman wrote:
> > Some of the things that I need to have injected aren't being injected
> > into "components."  For instance, I'm working on an
>
> In those cases you can do still use @SpringBean from
> wicket-spring in that class and call
>
>   InjectorHolder.getInjector().inject(this);
>
> in the constructor (or other suitable place) of that
> class.
>
> 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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to