You can do this:
InjectorHolder.getInjector().inject(this);
You need to do it in init(), though. The constructor is too early for the
injector to be configured. Other than that, you can @SpringBean any bean
you want.
otherwise spring wouldn't be able to inject the bean - this is different to
> the annotation-based approach where a setter is not required. but AFAIK it
> is not possible to inject a spring-bean into the application class using
> the
> annotation based approach.
>
> greetings
>
> Michael
> --
> View this message in context:
> http://www.nabble.com/spring-acegi-injection-question-tf4658329.html#a13338057
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>