Hi all,

I try to use the @SpringBean annotation in a class derived from LoadableDetachableModel. For whatever reason, the bean is not injected into my property, which will always be null.

However, I can do

MyApplication myApp = (MyApplication) Application.get();
myApp.getMySpringBeanRef()
...

in the same class. I used this as a workaround, but I'm still curious why @SpringBean works just fine in various other classes throughout my project but not in the above mentioned case.

I have to admit that I don't know how the property injection via @SpringBean really works, if someone could elaborate on this I'd be grateful.

-stephan



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

Reply via email to